Xavier Noria schreef: > $file =~ s/\.\w+$//;
That solution is broken, think "file.txt~" and "file.$$$", etc. :) -- Affijn, Ruud "Gewoon is een tijger." -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/