Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^3: shift vs @_

by shmem (Canon)
on Oct 03, 2006 at 20:50 UTC ( #576186=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    sub foo(\@\$) {
    ...
    
    print "ary: (@ary)\n";
    print "foo: $foo\n";
    
  2. or download this
    foo args: ('ARRAY(0x8167870)','SCALAR(0x8167978)')
    1st argument = ARRAY(0x8167870); content =('foo','bar','baz')
    2nd argument = SCALAR(0x8167978); content = 'blah'
    ary: (foo bar baz blah)
    foo: blurf
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (13)
As of 2015-07-06 21:20 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 (83 votes), past polls