in reply to Deleting specified files and directories

Hi , when you use unlink you need to specify the full pathname of the file, such as

 unlink "$basedir/$mesgdir/$file"

Check out this node Re: File Attributes in Win32 for my reply to a similiar problem : )

UPDATE: Put the pathname in double quotes. Thanks to MeowChow's reminder

Replies are listed 'Best First'.
Re: Re: Deleting specified files and directories
by Sadmachine (Novice) on May 14, 2001 at 12:36 UTC
    Thanks to everyone for the help. I'll add in all those things suggested. I don't want to be virtually tarred and feathered ;-) Thanks