Try this,
$a="a(b)cd(e)f"; print "\n", substr $a, 0,5,'' until $a eq '';
Regards,
Velusamy R.
In reply to Re: Split a string into items of constant length
by Samy_rio
in thread Split a string into items of constant length
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |