in reply to Re: "my" variable $self
in thread "my" variable $self
I appreciate any insight you may have. This is related to an earlier post regarding my sub error. Here is a simple script that re-creates the error using PerlApp:
The error is:use strict; use warnings; use WWW::Myspace; use Contextual::Return::Failure; my ($account, $password) = retrieve_acct_info(); my $myspace = WWW::Myspace->new($account,$password); sub retrieve_acct_info { my $account = 'email'; my $password = 'password'; return ($account, $password); }
"my" variable $self masks earlier declaration in same scope at test.pl + line 11, <DATA> line 21937.
In Section
Seekers of Perl Wisdom