prakash m wrote:
I have written a small code which will just try to split a string based on
the Key.
-
$val=sample1a+2.8sample2a+2.8sample3a;
print String=$val\n;
print split Key: 2.8\n;
@arr=split(/2.8/,$val);
foreach $i (@arr)
{
print **Split value: $i\n;
}
print
prakash m wrote:
I have written a small code which will just try to split a string
based on the Key. -
$val=sample1a+2.8sample2a+2.8sample3a;
print String=$val\n;
print split Key: 2.8\n;
@arr=split(/2.8/,$val);
foreach $i (@arr)
{
print **Split value: $i\n;
}
print