Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: declare/initialize variables at bottom of script?

by 5mi11er (Deacon)
on Jun 11, 2013 at 18:06 UTC ( [id://1038303]=note: print w/replies, xml ) Need Help??


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

Well, you could wrap all your code in subroutines at the top, then do the initializations and call some "main()" routine at the bottom, kinda like C code...

Otherwise, I am unaware of any magic options.

-Scott

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

Replies are listed 'Best First'.
Re^2: declare/initialize variables at bottom of script?
by bcarroll (Pilgrim) on Jun 11, 2013 at 18:17 UTC
    I think I used to do that years ago... not sure why I stopped...

    Thanks!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2024-04-24 07:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found