Re: splitting based on index

2005-03-10 Thread Gretar M Hreggvidsson
Hi Could you describe a bit more what you are trying to accomplish? Gretar Mar Saurabh Singhvi wrote: hi all if (($pos = index($free,"M",$pos)) > -1) { print "Found at $pos\n"; } now what i want to do is except the part that was found in index should be out

splitting based on index

2005-03-10 Thread Saurabh Singhvi
hi all if (($pos = index($free,"M",$pos)) > -1) { print "Found at $pos\n"; } now what i want to do is except the part that was found in index should be outputted to another variable as an integer ...how should i do that?? thnx in adv rgds Saurabh -- To