On Apr 23, 2013, at 3:56 PM, Henrik Lindberg <[email protected]> wrote:
> On 2013-23-04 23:54, Luke Kanies wrote: >> On Apr 23, 2013, at 7:13 AM, Henrik Lindberg >> <[email protected]> wrote: > >> >> I'm confused by the 'afunc' in the above examples - its pervasiveness in >> your examples implies it's required, but it doesn't actually appear to be >> based on the ARM. What am I missing? >> > "afunc" simply a fictive name of a function, any function - should perhaps > have called it "foo" to make it more apparent :) > > @(END) > text > END > > produces a rvalue. Not so interesting to show it with > $a = @(END) > text > END > > since you can do almost the same with just a string (no margin and no > detailed control of escapes though). > > so - showing it with a function (here also passing additional parameters) > > foo(@(END), 1, 2) > some text > END > > Hope that clarifies what "afunc" is/was… Yep, that helps. I'm curious at the chosen syntax here -- is @() a common syntax for heredocs? I'm more used to things like: $foo = <<END … END Was that more common syntax not a possibility for us? -- Luke Kanies | http://about.me/lak | http://puppetlabs.com/ | +1-615-594-8199 Join us at PuppetConf 2013, August 22-23 in San Francisco - http://bit.ly/pupconf13 -- You received this message because you are subscribed to the Google Groups "Puppet Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/puppet-dev?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
