Subject: | sample script has undeclared package variable |
~/hacks/yg $ perl yahoo2maildir
Global symbol "$num" requires explicit package name at yahoo2maildir line 49.
Execution of yahoo2maildir aborted due to compilation errors.
~/hacks/yg $
if ( $@ and $@->isa('X::WWW::Yahoo::Groups') ) {
# If it's one of our errors just continue
warn "Could not handle message $num: ", $@->error, "\n";
} elsif ($@) {
# Otherwise, abort.
----------------
I think $num should be number