XP is just a number | |
PerlMonks |
Re: help manipulating data in an array.by atcroft (Abbot) |
on Nov 12, 2004 at 04:06 UTC ( [id://407267]=note: print w/replies, xml ) | Need Help?? |
The reason for the error message is that when you performed the @number=<CINGULAR>;, you read the entire list into an array. This means you might have something like:
More likely what you intended in your if statement was something $number[$count] rather than @number, as this would allow you to loop thru the elements. Hope that helps.
In Section
Seekers of Perl Wisdom
|
|