in reply to Split a string into items of constant length
Try this,
$a="a(b)cd(e)f"; print "\n", substr $a, 0,5,'' until $a eq '';
Regards,
Velusamy R.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Split a string into items of constant length
by blazar (Canon) on Oct 04, 2005 at 10:32 UTC | |
by sauoq (Abbot) on Oct 04, 2005 at 11:25 UTC | |
by blazar (Canon) on Oct 04, 2005 at 11:56 UTC | |
|
Re^2: Split a string into items of constant length
by Anonymous Monk on Oct 04, 2005 at 10:25 UTC |