In that case, split still works:
That extra parameter asks for no more than two items - more _'s will not be even looked at.my ($part1, $part2) = split /_/, $str, 2;
In reply to Re^3: simple regexp problem
by Tanktalus
in thread simple regexp problem
by jeanluca
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |