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 ( #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
Node Status?
node history
Node Type: note [id://120235]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (2)
As of 2021-05-08 03:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Perl 7 will be out ...





    Results (96 votes). Check out past polls.

    Notices?