Chris, I think perhaps a mising semi-colon and case problems could be to blame. Try use File::Basename; #observe case
Because on a unix system FILE/BASENAME and File/Basename are different. Tristan You Wrote: ---------- I'm having problems using FILE::BASENAME and the fileparse command. I've used the code below to try it out but get an error message saying 'Undefined subroutine &main::fileparse called at D:\data\parse.pl line 6' use FILE::BASENAME $record = "D:\\data\\filename.bat"; ($name,$path,$suffix) = fileparse($record,@suffixlist); $basename = basename($record,@suffixlist); $dirname = dirname($record); Can anyone help ? Chris _______________________________________________________ sent via the murky.net webmail hegemony -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]