Anything derived from $~ is actually dynamically scoped.

If it was just thread local (which it is also) then the third puts would be
the same as the second one.



On Sat, Jan 10, 2009 at 3:24 PM, Adam Jacob <[email protected]> wrote:

>
> On Jan 10, 2009, at 1:24 PM, Andrew Shafer wrote:
>
> > One point of clarification, $1 and the other $n variables that get
> > set from a regex are NOT globals.
> >
> > They are dynamically scoped.
>
> I believe the term for this in ruby is 'thread local'.
>
> Adam
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to