Forum: CFEngine Help
Subject: Re: List element extraction fails
Author: m...@last.fm
Link to topic: https://cfengine.com/forum/read.php?3,27162,27190#msg-27190

Ah - that's the key distinction, I think.

Both "public" and "private" are arrays populated by the "regextract" function, 
which assigns regex backreferences to named elements in the array. However, 
"nm_elements" is not an array - it's simply a list returned by "splitstring". 
So I think your first comment was the answer - that I can't extract a single 
element from the list, and I was overlooking the fact that the regextract 
fucntions were populating arrays, not lists.

Still not sure how to get what I want out, but at least I now see where it's 
going wrong.... thanks.

_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to