Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
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
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 musing on the Monastery: (2)
As of 2021-05-08 05:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Perl 7 will be out ...





    Results (96 votes). Check out past polls.

    Notices?