Beefy Boxes and Bandwidth Generously Provided by pair Networks Frank
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Variable declaration

by fisher (Priest)
on Oct 14, 2011 at 06:10 UTC ( #931435=note: print w/ replies, xml ) Need Help??


in reply to Variable declaration

You 'use strict' and do not declare the scope of your variable; just add before actual usage a declaration like this:

my $another_variable;
And variable $new::variable already declared in package 'new'.


Comment on Re: Variable declaration
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2014-04-21 02:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (489 votes), past polls