Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^3: Storing object references during creation of ->new object

by perldarren (Novice)
on Aug 05, 2012 at 15:43 UTC ( #985542=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Storing object references during creation of ->new object
in thread Storing object references during creation of ->new object

Here is the entire sub new:

sub new { my $class = shift; my %options = @_; my $self = { _serial => $options{'serial'}, _log => $options{'log'}, _horcm => $options{'horcm'}, _does_get_cmd_status => $options{'does_get_cmd_status'}, }; bless $self, $class; $array_objects{$options{'serial'}} = $self; return $self; }


Comment on Re^3: Storing object references during creation of ->new object
Download Code
Replies are listed 'Best First'.
Re^4: Storing object references during creation of ->new object
by perldarren (Novice) on Aug 05, 2012 at 16:09 UTC

    Hold on ! tobyink, you're right - my issue is solved.

    Many thanks!

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (15)
As of 2015-07-29 12:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (263 votes), past polls