in reply to split a string at a defined index
Hi AvantA,
Try this
$str="www,google,yahoo,345"; my ($var1,$var2)= $str =~/^([^\n]+),([^\n]+)$/;
Punitha
In Section
Seekers of Perl Wisdom
in reply to split a string at a defined index
Hi AvantA,
Try this
$str="www,google,yahoo,345"; my ($var1,$var2)= $str =~/^([^\n]+),([^\n]+)$/;
Punitha