Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re^3: reading file into an arrayby McDarren (Abbot) |
on Dec 05, 2008 at 21:52 UTC ( [id://728396]=note: print w/replies, xml ) | Need Help?? |
$# (not #$) refers to the index of the last element of an array.
The "at-sign" sigil (@) is used when you refer to two or more elements of an array. If you are accessing (or referring to) a single element of an array, then the "dollar-sign" ($) sigil is used. For example:
Cheers,
In Section
Seekers of Perl Wisdom
|
|