Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^2: "my" variable $self

by Anonymous Monk
on Nov 09, 2006 at 13:53 UTC ( [id://583102]=note: print w/replies, xml ) Need Help??


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:
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); }
The error is:
"my" variable $self masks earlier declaration in same scope at test.pl + line 11, <DATA> line 21937.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://583102]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (3)
As of 2024-04-24 02:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found