in reply to new to perl, syntax question
Damien have a look at Arrays: A Tutorial/Reference. The relevant section is "Get count of elements" but it is well worth reading through.
Often you can find your answer by adding a print statement, taking ikegami's example:
Often you can find your answer by adding a print statement, taking ikegami's example:
print "@name"; # prints x y z print @name; # prints 3
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: new to perl, syntax question
by ikegami (Patriarch) on Feb 20, 2012 at 05:05 UTC | |
by tangent (Parson) on Feb 20, 2012 at 13:50 UTC | |
by lidden (Curate) on Feb 20, 2012 at 13:56 UTC | |
Re^2: new to perl, syntax question
by Marshall (Canon) on Feb 20, 2012 at 10:53 UTC |
In Section
Seekers of Perl Wisdom