in reply to Re^7: Can't call method "otherwise" without a package or object reference at
in thread Can't call method "otherwise" without a package or object reference at
For the original offending code that generates the error about can't call method "otherwise"... that I am trying to fix...do { (my($k) = 2); 'sysAssert'->throw('test assert') }->try('err'->catch(do { (my($ex) = @_); print("caught by with\n"); dPrt('warn', " with $ex") }->with(do { (my($ex) = @_); print("caught by otherwise \n"); dPrt('warn', "OTHERWISE:$ex") }->otherwise)));
if (($pbOnDStarMachine == 1)) { (my($sComm) = "sudo dchown nhmgenda '$$this{'sFullPath'}'"); do { libs::exec("$sComm") }->try('err'->catch(do { (my($ex) = @_); dPrt('warn', "$ex") }->with(do { (my($ex) = @_); dPrt('warn', "OTHERWISE:$ex") }->otherwise))); return(''); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^9: Can't call method "otherwise" without a package or object reference at
by ikegami (Patriarch) on Oct 06, 2010 at 23:08 UTC | |
by rpelak (Sexton) on Oct 07, 2010 at 21:31 UTC | |
by ikegami (Patriarch) on Oct 08, 2010 at 06:00 UTC | |
by rpelak (Sexton) on Oct 08, 2010 at 17:18 UTC | |
by ikegami (Patriarch) on Oct 08, 2010 at 17:33 UTC | |
| |
by ikegami (Patriarch) on Oct 08, 2010 at 15:58 UTC |