Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Re: passing subroutine arguments directly into a hash

by George_Sherston (Vicar)
on Oct 20, 2001 at 15:32 UTC ( [id://120235]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    @list = qw (one two three);
    %args = ( arg1 => 'string', arg2 => 5, arg3 => \@list );
    
    ...
    sub sub1 {
        print "$_\n" for @_;
    }
    
  2. or download this
    arg1
    string
    arg2
    5
    arg3
    ARRAY(0x17656b4)
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://120235]
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-23 22:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found