in reply to help with Print
Why won't here1 and here2 showup on the output?
Because your program doesn't compile, it cannot be run, and thus it cannot output anything.
$ perl -e' use strict; use warnings; print "here1\n"; @files = <*>; foreach $file (@files){ print $file . "\n"; } print "here2\n"; ' Global symbol "@files" requires explicit package name at -e line 5. BEGIN not safe after errors--compilation aborted at -e line 5. $ perl -e' use strict; use warnings; print "here1\n"; my @files = <*>; # <-- my foreach my $file (@files){ print $file . "\n"; } # <-- my print "here2\n"; ' here1 Build.PL Changes.txt inc lib LICENSE.txt MANIFEST MANIFEST.SKIP README.txt t here2
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
| A reply falls below the community's threshold of quality. You may see it by logging in. |