in reply to Re^2: Creating a new file in a directory
in thread Creating a new file in a directory
chomp does not remove all whitespace from the end of a string. I recommend that you be more explicit and use:
$mycrdir =~ s!\s*$!!;
Also, what is the error message your OS gives you in $! when creating the file fails?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: Creating a new file in a directory
by parthodas (Acolyte) on Aug 21, 2015 at 07:47 UTC | |
by Corion (Patriarch) on Aug 21, 2015 at 07:49 UTC | |
Re^4: Creating a new file in a directory
by parthodas (Acolyte) on Aug 21, 2015 at 07:56 UTC | |
Re^4: Creating a new file in a directory
by parthodas (Acolyte) on Aug 21, 2015 at 07:51 UTC |