Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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 chilling in the Monastery: (7)
As of 2014-10-22 06:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (114 votes), past polls