Have an idea?

Visit Sawtooth Software Feedback to share your ideas on how we can improve our products.

Create an Array of List Labels in Unverified Perl

What is the best practice for creating an array of list labels in unverified perl.  

You would think that you could just use:
my @myarray = LISTLABELSARRAY("MyList")

Instead of returning and array with each list label as an element, the above code returns an array with just a single element with the contents as:
['element1', 'element2', 'element3']

Since this doesn't work I just returned the list emollients as a string using FORMATLISTLABELS and then split the list into a string.  This seems like a little bit of a hack however.

Am I missing something here?  What is ListLabelsArray for anyway?
asked Sep 30, 2015 by John Howell

1 Answer

0 votes
you need to put
my @array = @{eval LISTLABELSARRAY("MyList")};
answered Sep 30, 2015 by Mike Lodder Gold (23,435 points)