in reply to How can one create a folder B in D drive and save results in a text file inside B using perl script?
not
open (my $fh,">D://B/",$output)
Perl tries to parse a IO layer like ":utf8" or ":raw" are.
Better
open (my $fh,">", "D://B/$output")
( I'm not sure about the slashes under win.)
You've been already pointed to mkdir and read open again.
And please do close $fh; not close $output;
Cheers Rolf
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: How can one create a folder B in D drive and save results in a text file inside B using perl script?
by supriyoch_2008 (Monk) on Dec 10, 2012 at 07:09 UTC |
In Section
Seekers of Perl Wisdom