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

Re: passing subroutine arguments directly into a hash

by demerphq (Chancellor)
on Oct 20, 2001 at 16:30 UTC ( #120238=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my ($host)=@_; $host="foo";
    
  2. or download this
    my $hash=shift; $hash->{host}="foo";
    
  3. or download this
    package Foo;
    use strict;
    ...
                    },a=>1,b=>2);
    my $tt=Foo->new();
    print Dumper $t,$tt;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (2)
As of 2022-05-20 05:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (72 votes). Check out past polls.

    Notices?