in reply to Re^2: Dereferencing %hash that does not exist. (conditional)
in thread Dereferencing %hash that does not exist.
In this particular script whenever my::module::exit_routine is called I need to pass the %modifier dispatch table so I need to setup the $log object like this:my $log = LogSimple->new(logdir => $logdir, logfile => $logfile, exit +=> \&my::module::exit_routine )
Except this does not work, the error is:my $log = LogSimple->new(logdir => $logdir, logfile => $logfile, exit +=> \&my::module::exit_routine(\%modifier) )
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Dereferencing %hash that does not exist. (conditional)
by AnomalousMonk (Archbishop) on Sep 04, 2013 at 18:48 UTC |