A
Ahmad
When running the following example:
$str="aaaaaa bbbb";
($a,$b)= $str=~/(\w+)\s?(\w+)/;
print $a,"\n",$b;
The result is:
aaaaa
a
Why do we get this result??? Can anybody explain it?
thanks and regards,
Ahmad
$str="aaaaaa bbbb";
($a,$b)= $str=~/(\w+)\s?(\w+)/;
print $a,"\n",$b;
The result is:
aaaaa
a
Why do we get this result??? Can anybody explain it?
thanks and regards,
Ahmad