Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
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 musing on the Monastery: (7)
As of 2015-07-03 22:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (57 votes), past polls