in reply to is this correct

No, it looks right to me. $file contains the name of the file that you are processing and $text contains the contents of that file.</p. --
<http://www.dave.org.uk>

"Perl makes the fun jobs fun
and the boring jobs bearable" - me