Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
$text = "20"
how can I split it up so that
@field[0] = 2, @field[1] = 0
I'm sure this is quite easy in perl, I'm just having a little trouble figuring out how to do it. Any help?
Fixed square brackets - dvergin 2003-01-07
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Splitting two digits
by Zaxo (Archbishop) on Jan 08, 2003 at 00:59 UTC | |
by broquaint (Abbot) on Jan 08, 2003 at 11:56 UTC | |
|
Re: Splitting two digits
by LTjake (Prior) on Jan 08, 2003 at 01:01 UTC | |
|
Re: Splitting two digits
by Ionizor (Pilgrim) on Jan 08, 2003 at 01:59 UTC | |
by cored (Scribe) on Jan 08, 2003 at 03:33 UTC | |
by Ionizor (Pilgrim) on Jan 08, 2003 at 03:57 UTC | |
|
Re: Splitting two digits
by fredopalus (Friar) on Jan 08, 2003 at 04:24 UTC | |
by Ionizor (Pilgrim) on Jan 08, 2003 at 18:04 UTC | |
by ihb (Deacon) on Jan 09, 2003 at 00:00 UTC |