in reply to Re: new to perl, syntax question
in thread new to perl, syntax question

Update: Again just genuinely trying to be helpful with a suggestion on how to print arbitrary results - for beginners, this is WAY COOL. Didn't mean to offend anybody.

I think better is to use the core module:

use Data::Dumper; .... print Dumper \@name;
Another module that you have to install before being able to use it:
use Data::Dump qw(pp); ..... print pp \@name;
Basically, both of these modules can print/dump an arbitrary Perl data structure.
The format of the output is a bit different, but they both can do it.
This is actually pretty much magic.
It is of huge help when debugging.
And it is of very huge help once you get into multidimensional data structures.