Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^3: Using 'Shift' in subroutine argument

by shmem (Chancellor)
on Nov 02, 2007 at 13:20 UTC ( [id://648637]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub one{
        &two shift, shift;
    }
    
  2. or download this
    use strict;
    use warnings;
    ...
    sub one {
        two shift, shift;
    }
    
  3. or download this
    use strict;
    use warnings;
    ...
    sub two {
        print "Elements : \n @_ \n";
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (6)
As of 2024-04-24 09:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found