|
Posted by dummy on March 19, 2008, 9:40 pm
Please log in for more thread options On Thu, 20 Mar 2008 00:02:28 +0000 (UTC), Ben Bullock
>On Wed, 19 Mar 2008 16:41:19 -0700, dummy wrote:
>
>> Please don't sneer and laugh, but I think I've found a bug in perl
>> itself.
>
>I am using Perl on linux:
>
>ben ~ 525 $ perl --version
>
>This is perl, v5.10.0 built for i686-linux
>
>I changed only the top line of your program to "#!/usr/bin/perl" and the
>output was as follows:
>
>ben ~ 524 $ ./bug.pl
>Semicolon seems to be missing at ./bug.pl line 25.
>"my" variable $q masks earlier declaration in same scope at ./bug.pl line
>28.
>"my" variable $q masks earlier declaration in same scope at ./bug.pl line
>29.
>"my" variable $q masks earlier declaration in same scope at ./bug.pl line
>30.
>"my" variable @in masks earlier declaration in same scope at ./bug.pl
>line 32.
>"my" variable @in masks earlier declaration in same scope at ./bug.pl
>line 34.
>"my" variable $q masks earlier declaration in same scope at ./bug.pl line
>34.
>"my" variable %ow masks earlier declaration in same scope at ./bug.pl
>line 61.
>"state" variable @_ masks earlier declaration in same scope at ./bug.pl
>line 77.
>syntax error at ./bug.pl line 26, near ") # works if i comment out this
>line and put 'my' below -+
># print "old\n"; |
># display(); |
>INPUT"
>syntax error at ./bug.pl line 56, near "}"
>Can't use global @_ in "my" at ./bug.pl line 68, near "= @_"
>syntax error at ./bug.pl line 74, near "}"
>Can't use global @_ in "my" at ./bug.pl line 77, near "= @_"
>BEGIN not safe after errors--compilation aborted at ./bug.pl line 78.
>
>I think some people might be tempted to laugh.
Obviously a cut-and-paste typo. Otherwise I would have no output. Fix
the missing semicolon and try again. That is, if you want to do more
than ridicule.
|