in reply to Split a string into items of constant length
my @chunks = unpack "(A5)*", "a(b)cd(e)f"; print $chunks[0], "\n"; print $chunks[1], "\n"; __END__ a(b)c d(e)f
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Split a string into items of constant length
by sauoq (Abbot) on Oct 04, 2005 at 10:53 UTC | |
| |
|
Re^2: Split a string into items of constant length
by gargle (Chaplain) on Oct 04, 2005 at 10:26 UTC | |
by blazar (Canon) on Oct 04, 2005 at 10:44 UTC |