in reply to Re: string search
in thread string search

index is case sensitive. You'll probably want to say
if(index(lc $source, 'no such file') != -1) { print "Found it \n"; }
to normalise $source into lower case.