in reply to Re: use of substr() with file
in thread use of substr() with file

if(//g) ⇒ bug. Get rid of the "g".