Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

Re: declare/initialize variables at bottom of script?

by AnomalousMonk (Canon)
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?

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1038354]
shmem puts a big cauldron of "silly con charme" on the table in the refectorium
[shmem]: mahlzeitTM

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (7)
As of 2017-04-27 11:14 GMT
Find Nodes?
    Voting Booth?
    I'm a fool:

    Results (503 votes). Check out past polls.