- or download this
foreach $loopvariable (@data_array)
{ print $loopvariabe ; }
- or download this
foreach (@data_array)
{ print $data_array ; } #this looks like wrong syntax
- or download this
>perl -wMstrict -le
"my @array = qw(one two three);
...
"
Global symbol "$array" requires explicit package name at -e line 1.
Execution of -e aborted due to compilation errors.
- or download this
>perl -wMstrict -le
"my @array = ('two', 'three', 'four');
...
print qq{@array};
"
twp thref fous