Hi AvantA,
Try this
$str="www,google,yahoo,345"; my ($var1,$var2)= $str =~/^([^\n]+),([^\n]+)$/;
Punitha
In reply to Re: split a string at a defined index
by Punitha
in thread split a string at a defined index
by avanta
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |