Doctrin has asked for the wisdom of the Perl Monks concerning the following question:
Hello dear Monks!
I just wanted to know - is there any REAL difference between following. Say, I do:
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; }
Back to
Seekers of Perl Wisdom