I'm using perl 5.6.1 at work.
I'm trying to use pod as a multiline comment.
This script:
(paste)
my @foods = (
'apple',
'banana',
'cherry',
# this is a multiline comment
=thingy
'potato',
'corn',
=cut
);
(end paste)
gives me an error:
> perl perlbug.pl
String found where operator expected at perlbug.pl line 13, near "thingy
'potato'"
(Do you need to predeclare thingy?)
syntax error at perlbug.pl line 12, near "="
Execution of perlbug.pl aborted due to compilation errors.
If I move the =thingy outside of the array declaration, it's fine.
(paste)
my @foods = (
'apple',
'banana',
'cherry',
);
# this is a multiline comment
=thingy
'potato',
'corn',
=cut
(end paste)
Wassup wit dat?
Greg
_______________________________________________
Boston-pm mailing list
[email protected]
http://mail.pm.org/mailman/listinfo/boston-pm