Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^4: Case where '( shift @_ )[ 0, 0 ]' returns only one value?

by stevieb (Canon)
on Jan 14, 2019 at 22:41 UTC ( [id://1228559]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    spek@scelia ~/scratch $ perlbrew exec perl -le '@_ = qw( a b c ); @A =
    + ( shift @_ )[ 0, 0 ]; print @A'
    
    ...
    perl-5.10.1
    ==========
    aa
    
  2. or download this
    spek@scelia ~/scratch $ perlbrew exec perl -le '@_ = qw( a b c ); @A =
    + ( shift @_ )[ 0, 0 ]; print @A'
    perl-5.27.10
    ...
    perl-5.10.1
    ==========
    aa
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2024-04-25 15:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found