Here is another way to print the elements of an array on separate lines, using the $, variable (see perlvar:
#!/usr/bin/perl use strict; use warnings; my @array = (1..10); local $, = "\n"; print @array;
In reply to Re^4: printing all elements of arrays
by beable
in thread printing all elements of arrays
by drock
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |