Beefy Boxes and Bandwidth Generously Provided by pair Networks DiBona
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Odd workings of split

by JavaFan (Canon)
on Mar 29, 2012 at 12:58 UTC ( #962382=note: print w/ replies, xml ) Need Help??


in reply to Odd workings of split

Another work around, specially geared towards the oddity that split returns an empty list:

$cmd[$_] = [split("\n", $cmd[$_]), ""]->[0];


Comment on Re: Odd workings of split
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (16)
As of 2014-04-16 17:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (433 votes), past polls