in reply to splitting
Sure it's not pretty, but I suppose that's the goal...$dlm = '~'; $str = 'my~mind~has~been~broken'; foreach (split(/$dlm/,$str)) { push(@ary,$_,$dlm); } $ary[$#ary--]; print join(',',@ary),"\n";
|
---|
Replies are listed 'Best First'. | |
---|---|
RE: Re: splitting
by Eugene (Scribe) on Apr 28, 2000 at 18:57 UTC |