RE: perl string operations - query

2005-08-03 Thread Wagner, David --- Senior Programmer Analyst --- WGO
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

Re: perl string operations - query

2005-08-03 Thread Greg Maruszeczka
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: $