I prefer something like print STDOUT "@list";, which is semantically equivalent to print STDOUT (join($", @array));[firewheel ~]$ perl my @list = (1 .. 4); print STDOUT @list;
Fastolfe is correct, though. This is a scoping issue.
In reply to RE: RE: Writing the contents of an array to a file
by chromatic
in thread Writing the contents of an array to a file
by Limo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |