> Hmm, another alternative would be to hook an ephemeral scope hierarchy
> to the current scope; evaluate_match would then spawn a new ephemeral
> scope which would "alias" the previous one in the same scope. That would
> be the cleanest solution.
It might also violate the principle of least surprise. What would you expect:
$var = "matchagain"
case $var {
/match/: {
notice($0)
if $var =~ /matchagain/ {
notice($0)
}
notice($0)
}
}
to produce?
-- Markus
--
You received this message because you are subscribed to the Google Groups
"Puppet Developers" 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-dev?hl=en.