Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: passing subroutine arguments directly into a hash

by demerphq (Chancellor)
on Oct 20, 2001 at 16:30 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (7)
As of 2024-04-25 16:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found