in reply to File regex question

Just for the fun of it, here's an approach using lvalues:

substr($line, 12) =~ s/ /_/g;
It substitutes the replacement into the relevant part of the string.

Hope this helps, -gjb-