Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Subroutines: Returning a hash vs. hash reference

by mt2k (Hermit)
on Nov 28, 2002 at 04:02 UTC ( [id://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 making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2024-04-24 11:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found