Obviously…
my @numword = qw( zero one two three four five six seven eight nine te +n ); my $i = 0; ${ "f_" . $numword[ $i++ ] } = $_ for split //, $string;
Nevermind the fact that you can vandalize the symbol table to put things in it with whose names don't conform to identifier rules, such as ${ '[ ha ha ha ]' } = 1;.
Makeshifts last the longest.
In reply to Re^3: How to split a string
by Aristotle
in thread How to split a string
by Red_Dragon
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |