princepawn has asked for the wisdom of the Perl Monks concerning the following question:
but of course $0 doesnt change roles within subroutines.sub load_data { my $self = shift; $self->{$0} = 'data i created'; }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: How can a subroutine get its name?
by clemburg (Curate) on Sep 03, 2001 at 20:56 UTC | |
Re: How can a subroutine get its name?
by tachyon (Chancellor) on Sep 03, 2001 at 20:58 UTC |