in reply to Re^3: printing all elements of arrays
in thread printing all elements of arrays
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;
|
|---|