in reply to Re: Alternatives to split?
in thread Alternatives to split?
my ($tag)= split(/|/,$_,2);
This won't split on all but just the first |.my ($tag)= split(/\|/,$_,2);
Update: Thanks to wirrwarr for correcting me
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Alternatives to split?
by wirrwarr (Monk) on Sep 03, 2003 at 11:31 UTC | |
by Perl Apprentice (Initiate) on Sep 03, 2003 at 12:23 UTC | |
by jeffa (Bishop) on Sep 03, 2003 at 13:26 UTC |