in reply to perl error
In the line in question, you are dealing with one element of the array, which is a scalar, so you use $ not @. To demonstrate with a simpler example, @a is an array. $a[0] is the first element in the array.
-pete
"Worry is like a rocking chair. It gives you something to do, but it doesn't get you anywhere."
-pete
"Worry is like a rocking chair. It gives you something to do, but it doesn't get you anywhere."
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: perl error
by topaz (Initiate) on Jul 28, 2011 at 23:50 UTC | |
by dreadpiratepeter (Priest) on Jul 29, 2011 at 00:10 UTC | |
by topaz (Initiate) on Jul 29, 2011 at 00:29 UTC | |
by Anonymous Monk on Jul 28, 2011 at 23:58 UTC | |
by dreadpiratepeter (Priest) on Jul 29, 2011 at 00:18 UTC | |
by topaz (Initiate) on Jul 29, 2011 at 00:05 UTC |
In Section
Seekers of Perl Wisdom