in reply to Re^4: 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
It looks like you're missing a semicolon between the otherwise block and the die. It should be:
try { my ($k) = 2; throw sysAssert("test assert"); } catch err with { my ($ex) = @_; print "caught by with\n"; dPrt("warn"," with $ex"); } otherwise { my ($ex) = @_; print "caught by otherwise \n"; dPrt("warn","OTHERWISE:$ex"); }; die "got here";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Can't call method "otherwise" without a package or object reference at
by rpelak (Sexton) on Oct 06, 2010 at 15:25 UTC | |
by ikegami (Patriarch) on Oct 06, 2010 at 16:14 UTC | |
by rpelak (Sexton) on Oct 06, 2010 at 17:01 UTC | |
by ikegami (Patriarch) on Oct 06, 2010 at 23:08 UTC | |
by rpelak (Sexton) on Oct 07, 2010 at 21:31 UTC | |
|