Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

RESOLUTION->Re: using return to create a module object

by c (Hermit)
on Jul 07, 2002 at 00:38 UTC ( [id://179906]=note: print w/replies, xml ) Need Help??


in reply to using return to create a module object

A lot of learning came out of this thread for me, and I appreciate everyone that has contributed through posts and through /msg. I found that the passing the hash within the subroutine directly corrected the problem. So rather than a reference

my $new_session = Net::SNMP->session(\%options);

just passing the hash itself works

my $new_session = Net::SNMP->session(%options);

My next step will be taking out those unnecessary quotes and cleaning up the code with the suggestion I've received.

thanks -c

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (3)
As of 2024-04-25 07:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found