in reply to Re: New Folders
in thread New Folders

Thanx Moving $New = qq($PATH\\$nFile); out side the loop worked doesn’t explain why it worked on the second run and not the first.

No I don't have a special code for naming just that’s the way I’ve all ways done it. I agree $PATH and $path is confusing. May be I should of used $Tpath inside the loop

Replies are listed 'Best First'.
Re^3: New Folders
by jethro (Monsignor) on Dec 15, 2011 at 13:02 UTC
    ...doesn’t explain why it worked on the second run...

    Oh, it does. On the second run the directory $path.1 had already been created (by the first run) and so the loop beginning with "until (! -d $PATH)" did run at least once. When that happens the line "$New=..:" gets executed. Result: $New!=$Old