open(FILEHANDLE, "+>$filename"); would create a file for writing in the current directory named whatever was in $filename.
> -----Original Message----- > From: Tom Allison [mailto:[EMAIL PROTECTED] > Sent: Monday, November 07, 2005 7:37 PM > To: Timothy Johnson > Cc: ZHAO, BING; [EMAIL PROTECTED]; beginners@perl.org > Subject: Re: PS what is the correct/efficient function to > create a file > > > You could always use Shell module. > > > Hi, > > unlink $file works fine, but link $file doesn't > > even exist, > > The sysopen function seems to be tedious, does > > anyone know how to effectively create a file in some directory in > > perl? > > > > > > > > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] For > additional commands, e-mail: [EMAIL PROTECTED] > <http://learn.perl.org/> <http://learn.perl.org/first-response> > > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>