in reply to Create file in a specified directory
Print out $! to see the error message:
open $fh, ">$uniqueCaptureName" or die "can't open file: $!\n";
Better yet, use the three arg open:
open $fh, '>', $uniqueCaptureName" or die "can't open file: $!\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Create file in a specified directory
by ramya2005 (Scribe) on Sep 01, 2005 at 18:47 UTC | |
by davidrw (Prior) on Sep 01, 2005 at 19:00 UTC | |
by Anonymous Monk on Sep 01, 2005 at 19:01 UTC |