Re: about creating a file in directory

2005-11-07 Thread JupiterHost.Net
ZHAO, BING wrote: Hi, Hello, It seems pretty easy to unlink a file from a directory, but wherever describes unlinking file has no counterpart on create a file. I did perldoc -q file: got what seemed to be what I need, then tested my program, no good: open

RE: about creating a file in directory

2005-11-07 Thread Ward.P.Fontenot
You need to look for open / close. Example: open(TMP, "> test.file") || die "Can't open test.file: $! \n"; >From there you are printing to it print TMP "Whatever you are wanting to get into the file"; And closing Close(TMP); -Original Message- From: ZHAO, BING [mailto:[EMAIL PRO