I think people have been pretty clear. the open() function is the
standard function for creating files.
##############################################
open(OUTFILE,">my_file.txt") or die("Couldn't open 'my_file.txt' for
writing!\n";
foreach(1..1001){
print OUTFILE $_;
}
close OUTFILE;
#############################################
-----Original Message-----
From: ZHAO, BING [mailto:[EMAIL PROTECTED]
Sent: Monday, November 07, 2005 2:24 PM
To: [EMAIL PROTECTED]; [email protected]
Subject: PS what is the correct/efficient function to create a file
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>