Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Mystery interaction between split and gobbling arrays

by Discipulus (Canon)
on Jun 17, 2015 at 20:58 UTC ( [id://1130885]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    If LIMIT is omitted (or, equivalently, zero), then it is usually treat
    +ed as if it were instead negative but with the exception that trailin
    +g empty fields are stripped (empty leading fields are always preserve
    +d);
    
  2. or download this
    perl -MData::Dumper -e "$str='foo:bar:'; ($x,@opt)=split /:/,$str,-1;p
    +rint Dumper ($x,\@opt)"
    $VAR1 = 'foo';
    ...
              ''
            ];
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2024-04-24 22:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found