Rob Dixon wrote:
suresh kumar wrote:
This is my code :

$::dev2->getvalue($x,$y);

<snip>

The double colon in your variable names is probably superfluous unless your code
is in a package other than 'main'. $::dev1 is equivalent to $main::dev1 and so
just $dev1 if the current package is the default one.

Assuming that strictures is enabled - an assumption we should make on this list IMO - $dev1 is equivalent to $::dev1 only if $dev1 is declared using our (or use vars).

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to