in reply to Use of $AUTOLOAD and strict
Yes, use vars qw ( $AUTOLOAD ); would do the trick. Better yet, so would the following:
sub AUTOLOAD { our $AUTOLOAD; my $subroutine_name = $AUTOLOAD; ... }
The ones that need to be declared are the ones not listed by the following:
perl -e "$,=$\=$/; print keys %::"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Use of $AUTOLOAD and strict
by ambrus (Abbot) on May 12, 2005 at 08:53 UTC | |
by ikegami (Patriarch) on May 12, 2005 at 13:39 UTC | |
by fizbin (Chaplain) on May 12, 2005 at 14:32 UTC |