Heh...PERL.

temp = '1,2,3,4'
val = temp.split(',')[0]

Trevor

On Thu, Oct 8, 2009 at 11:40, Matt <mattmora...@gmail.com> wrote:
>
> With 0.25 we can use the split function to parse a string in to an array.
>
> In puppet how can I reference a single element of that array?
>
> $temp = "1,2,3,4"
>
> Then i'd lilke to do :
>
> $val = split($temp,',')[0]
>
> Thanks,
>
> Matt
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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