One simple thing you might want to start doing is including the filename in your error message. Quite often this message means that either you're not in the starting directory you think you're in or part of your filename is being interpreted as something other than what you intended.
my $file = "output_dir/simple2.html"; open OUT,">$file" or die "Can't open '$file' for writing: $!"; -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, May 22, 2006 2:50 PM To: beginners@perl.org Subject: No Such File Error on Simple Scrape When I execute the script below, I get the error message "No such file or directory at simple2.pl line 21." Line 21 is the Open OUT statement. This script parallels a tutorial script that does work and I don't see the error. It does print to the screen if I comment out the Open OUT line. Thanks in advance. <snip> open OUT, ">output_dir/simple2.html" or die "Can't open file: $!"; <snip> -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>