Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

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

by c (Hermit)
on Jul 07, 2002 at 00:38 UTC ( #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?

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (3)
As of 2021-06-18 05:34 GMT
Find Nodes?
    Voting Booth?
    What does the "s" stand for in "perls"? (Whence perls)

    Results (87 votes). Check out past polls.