|
|
|
Clear questions and runnable code get the best and fastest answer |
|
| PerlMonks |
Yaml !perl/range to perl rangeby mpegjohn (Initiate) |
| on Dec 01, 2012 at 20:34 UTC ( #1006640=perlquestion: print w/ replies, xml ) | Need Help?? |
|
mpegjohn has asked for the
wisdom of the Perl Monks concerning the following question:
I have read in a yaml file where we specified a perl range like my_range: !perl/range 0..4
We use Yaml::XS to read in the yaml. and we get $my_range which is a reference to a perl/range which is a reference to a scalar with a value '0..4'.
I have de-referenced this and tried to use this to setup an array: @array={$$value), but all I get is an array with one element of value '0..4'.
How do I setup an array with this? Thanks.
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||