Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Subroutines: Returning a hash vs. hash reference

by mt2k (Hermit)
on Nov 28, 2002 at 04:02 UTC ( #216232=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    package Module::Name;
    
    ...
         # OR
      return \%input; # return hash reference
    }
    
  2. or download this
    my $CGI = new Module::Name;
    my %INPUT = $CGI->get_params();
    print $INPUT{'node'};
    
  3. or download this
    my $CGI = new Module::Name;
    my $INPUT = $CGI->get_params();
    print $INPUT->{'node'};
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2022-09-27 06:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I prefer my indexes to start at:




    Results (118 votes). Check out past polls.

    Notices?