CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Advanced: Re: [Stormdev] Why does my array appear to be out of scope?: Edit Log



FishMonger
Veteran / Moderator

May 8, 2009, 5:34 PM


Views: 2066
Re: [Stormdev] Why does my array appear to be out of scope?

You want to declare vars with "our" only when you need to create global vars, which is not very often. 99.8% of the time you should use "my" to create lexical vars even when they're outside of subs.

You'll need to post your code so I can see why you're having this issue.


(This post was edited by FishMonger on May 8, 2009, 5:35 PM)


Edit Log:
Post edited by FishMonger (Veteran) on May 8, 2009, 5:35 PM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives