in reply to How to split a string
No looping required, thanks to the magic split //:
my (@f) = split // => $s;
I'd suggest having it in an array instead of individual scalars (it usually ends up being far easier to deal with in the rest of the code), but if you really want it that way:
my ( $f0, $f1, $f2, $f3, $f4, $f5, $f6, $f7, $f8, $f9, ) = split // => $s;
"There is no shame in being self-taught, only in not trying to learn in the first place." -- Atrus, Myst: The Book of D'ni.
|
|---|