Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

Re: Yet another array problem

by pbeckingham (Parson)
on Jul 29, 2005 at 15:19 UTC ( #479438=note: print w/ replies, xml ) Need Help??

in reply to Yet another array problem

Well... The first line inside the loop is redundant, as you assign a string to an array, then overwrite that same array.

Your code below is laso relying on $_ in cases where there is no value.

Consider this:

while (<>) { for (/(\d+)/g) { print $_, "\n"; } }

pbeckingham - typist, perishable vertebrate.

Comment on Re: Yet another array problem
Select or Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2015-11-30 01:30 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (755 votes), past polls