Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
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?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (6)
As of 2023-12-04 21:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?











    Results (25 votes). Check out past polls.

    Notices?