in reply to Re^8: 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
No surprise. It just confirms that Perl thinks you have indirect method calls where you didn't mean use such. In both cases.
Could you place the following just before your sub and provide the output:
BEGIN { no strict 'refs'; no warnings 'uninitialized'; printf("package %s\n", __PACKAGE__); for (qw( try catch with otherwise err )) { printf("%s: exists:%s defined:%s prototype:%s\n", $_, exists(&{$_}) || 0, defined(&{$_}) || 0, prototype($_), ); } }
Update: Removed bad slashes.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^10: Can't call method "otherwise" without a package or object reference at
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 rpelak (Sexton) on Oct 08, 2010 at 19:53 UTC | |
| |
by ikegami (Patriarch) on Oct 08, 2010 at 15:58 UTC |