in reply to Re^2: How to split a string
in thread How to split a string
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: How to split a string
by ambrus (Abbot) on Jan 28, 2005 at 21:20 UTC | |
by Aristotle (Chancellor) on Jan 28, 2005 at 21:39 UTC |