Then just check $vals[1]. The advantage is that you can also check if you're looking at the right field (by checking $namemy ($name, $val) = split /:\s*/; my @val = split /:/, $val;
In reply to Re: Splitting on a pattern once
by ikegami
in thread Splitting on a pattern once
by perlpal
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |