And my subroutine is:$bag->contents();
So, is there any real difference between my $self = shift and my ($self) = @_ Thanks!sub contents { my $self = shift; # WHAT IF I CALL my ($self) = @_ ? #so something return; }
In reply to Difference between my $self = shift and my ($self) = @_ by Doctrin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |