in reply to another way to split with limit
tr /://; print;
Or, to avoid the third argument in split, you could use slices:
$_ = 'p:e:r:l:p:e:r:l'; @a[0..3] = split /:/; print @a;
But I'm not sure I've understood your question :))
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: another way to split with limit
by Anonymous Monk on Aug 20, 2001 at 00:11 UTC | |
by guillaume (Pilgrim) on Aug 20, 2001 at 00:34 UTC |