Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
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 perusing the Monastery: (5)
As of 2014-07-26 03:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (175 votes), past polls