Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: declare/initialize variables at bottom of script?

by AnomalousMonk (Abbot)
on Jun 11, 2013 at 22:13 UTC ( #1038354=note: print w/ replies, xml ) Need Help??


in reply to declare/initialize variables at bottom of script?

If you want to go old-school, there's also the vars pragma for declaring package variables (which is what you get with our):
    use vars qw($scalar @array %hash $etc);

But I must say I second BrowserUk's preferred practice and would echo his question: what advantage do you see for doing it your way?


Comment on Re: declare/initialize variables at bottom of script?
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (7)
As of 2015-07-02 02:10 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 (25 votes), past polls