in reply to Re^3: Creating result file with time stamp
in thread Creating result file with time stamp

Directory is getting created...But the problem is that the file is not getting created inside the directory
  • Comment on Re^4: Creating result file with time stamp

Replies are listed 'Best First'.
Re^5: Creating result file with time stamp
by Anonymous Monk on Jun 17, 2009 at 06:56 UTC
    No.
    D:\tmp>mkdir 1 D:\tmp>mkdir 1 A subdirectory or file 1 already exists. D:\tmp>echo >1 Access is denied. D:\tmp>echo > 1\2\3 The system cannot find the path specified. D:\tmp>perl -Mautodie -e"open F, '>', '1/2/3'" Can't open '1/2/3' for writing: 'No such file or directory' at -e line + 1 D:\tmp>perl -Mautodie -e"open F, '>', '1'" Can't open '1' for writing: 'Permission denied' at -e line 1
Re^5: Creating result file with time stamp
by wol (Hermit) on Jun 17, 2009 at 12:54 UTC
    Which directory is getting created? "results" or the sub-directory that is named according to the date (eg "test-result-2009-06-17")?

    --
    use JAPH;
    print JAPH::asString();