Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
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 meditating upon the Monastery: (6)
As of 2015-07-04 18:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (60 votes), past polls