On Sat, Jan 10, 2009 at 02:24:59PM -0700, 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.
 
Oh right, apologies getting that wrong (late, long day). They are also
thread-local. Thanks for correcting me Andrew.

> But $almostanythingelse IS global... ahh, Ruby...

Yeah. One of the (few) places where Ruby compromised in order to be
Perl-compatible.  Personally I wish these fake $-variables would just go away.
They seem like a wart on Ruby's otherwise pretty clean syntax.

-- 
Jos Backus
jos at catnook.com

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

Reply via email to