Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
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 chanting in the Monastery: (4)
As of 2024-04-25 21:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found