1 - The first parameter to your method will always be the object handle. Try the following:
sub pass{ shift(); # To ignore the handle # or # my $self = shift(); if you want to use it. my ( $problem1 )= @_; print "$problem1\n"; }
In reply to Re: two problems about passing var between classes
by Biker
in thread two problems about passing var between classes
by benlaw
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |