Beefy Boxes and Bandwidth Generously Provided by pair Networks
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??


in reply to help manipulating data in an array.

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:

$number[0] = '888-555-1212' $number[1] = '666-555-3456' $number[2] = '123-555-9432'

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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://407267]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (2)
As of 2024-04-25 03:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found