Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
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 examining the Monastery: (5)
As of 2014-12-20 23:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (99 votes), past polls