Hi, Trevor!
On Jan 26, 7:32 am, Trevor Vaughan <[email protected]> wrote:
> Maybe I'm missing something here.
>
> class foo { ... }
>
> and
>
> $foo
>
> Both trigger: defined('foo')
I cannot for the life of me get this to work on either 2.6.4 or
0.25.5. This code:
$somevar = "var."
notice('$somevar defined?')
notice(defined($somevar))
notice('')
notice('somevar defined?')
notice(defined(somevar))
notice('')
notice('"$somevar" defined?')
notice(defined("$somevar"))
notice('')
notice('\'$somevar\' defined?')
notice(defined('$somevar'))
notice('')
notice('"somevar" defined?')
notice(defined("somevar"))
notice('')
notice('\'somevar\' defined?')
notice(defined('somevar'))
... gives me a whole pile of "false;" as far as I could determine,
defined() ignores variables. Could you get me some more info on how
you got that to happen?
Thanks,
N
--
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.