Since you are only interested in the first two fields.my $foo = 'abc|def|ghi|jkl|mno'; my @bar = split('|', $foo, 3);
In reply to Re: Re: get some part of the string using regex
by Sifmole
in thread get some part of the string using regex
by gdnew
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |