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

Re^2: My promiscous singleton

by Random_Walk (Prior)
on Dec 30, 2019 at 00:26 UTC ( [id://11110744]=note: print w/replies, xml ) Need Help??


in reply to Re: My promiscous singleton
in thread My promiscous singleton

Spot on sir. Face palm time. Thanks for pointing that out.

Now I remove that extra my it all works as desired:

Get instance called from main Not yet instantiated $VAR1 = bless( { 'Log' => 0, 'Screen' => 0 }, 'Helper::Logger' ); Mon Dec 30 01:25:32 2019 Log1 Get instance called from main Already instantiated Setting new values $VAR1 = bless( { 'Log' => 4, 'fh' => \*Helper::Logger::__ANONIO__, 'LogName' => 'CommandLine.log', 'Screen' => 0, 'LogDir' => '/home/random/log', '_continuation' => 0 }, 'Helper::Logger' ); $VAR1 = bless( { 'Log' => 4, 'fh' => \*Helper::Logger::__ANONIO__, 'LogName' => 'CommandLine.log', 'Screen' => 0, 'LogDir' => '/home/random/log', '_continuation' => 0 }, 'Helper::Logger' );

Both nicely point to the same object. Perfect

Thanks,
R.

Pereant, qui ante nos nostra dixerunt!

Log In?
Username:
Password:

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

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

    No recent polls found