Re: Global scope
[email protected] (Gunnar Hjalmarsson) Thu, 23 Apr 2009 21:57:00 +0200
| Newsgroups | perl.beginners.cgi |
|---|---|
| Message-ID | <[email protected]> |
Vance E. Neff wrote: > Gunnar, > > Thanks for your response! > > That is what I started with Which "that" are you referring to? Please do not top post. <snip> > So you can't do something like this: > our $variable = "value1" if (something is true); > our $variable = "value2" if (something else is true); At http://perldoc.perl.org/perlsyn.html#Statement-Modifiers it's stated that the behavior of my() is undefined when modified with a statement modifier. Maybe that's true for our() as well. -- Gunnar Hjalmarsson Email: http://www.gunnar.cc/cgi-bin/contact.pl