Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Newbie can't figure out looping a while (if)

by Cody Pendant (Prior)
on Apr 18, 2008 at 01:15 UTC ( #681347=note: print w/replies, xml ) Need Help??


in reply to Newbie can't figure out looping a while (if)

This is a glaring error, I would have thought:

@clients = $_; $client = shift @clients;

You can't just magically make an array out of a string, even if the string is a comma-separated list! You're making a one-item array, then shifting that one item off again into $client. So you might as well just have $client = $_;.



Nobody says perl looks like line-noise any more
kids today don't know what line-noise IS ...

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (5)
As of 2020-07-14 23:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?