sub flatten_stringeval { eval join ',', map {ref $_[$_] eq 'ARRAY' ? "\@\{\$_[$_]\}" : "\$_[$ +_]"} (0..$#_); }
This exemplifies the automatic flattening of arrays in perl list literals.
In reply to Re: flattening a list-of-lists
by calin
in thread flattening a list-of-lists
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |