Beefy Boxes and Bandwidth Generously Provided by pair Networks Joe
No such thing as a small change
 
PerlMonks  

Re: Variable declaration

by fisher (Curate)
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 browsing the Monastery: (4)
As of 2013-05-26 03:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best material for plates (tableware) is:









    Results (524 votes), past polls