Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^5: Mystery interaction between split and gobbling arrays

by kcott (Archbishop)
on Jun 19, 2015 at 05:44 UTC ( [id://1131103]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    perl -MO=Deparse,-P -e 'my ($x, @y) = (1,2,,,,,); print $#y'
    
  2. or download this
    $ perl -MO=Deparse -e 'my ($x, @y) = (1,2,,,,,); print $#y'
    my($x, @y) = (1, 2);
    print $#y;
    -e syntax OK
    
  3. or download this
    $ perl -MO=Deparse,-p -e 'my ($x, @y) = (1,2,,,,,); print $#y'
    (my($x, @y) = (1, 2));
    print($#y);
    -e syntax OK
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (2)
As of 2024-04-20 03:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found