You are missing the point of his request. He wants to see what $file is, in addition to the $! variable. Why? Because the error "No such file or directory" begs the question "What file is the program trying to create, and in what directory?"open(WRITE,">$file") or die( "Cannot write to $file: $!" );
buckaduck
In reply to Re: Re: Re(3):: opening new file in different directory
by buckaduck
in thread opening new file in different directory
by George_Sherston
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |