in reply to Use Mkdir to create dir from list
I think you have a couple problems.
# make_path(map {chomp} <$GSR_fh>); # make_path(map {chomp} <$GSR_fh>);
chomp returns its success/fail status, not the $_. So you're probably going to just feed a list of 1s to make_path. You could change it to map { chomp; $_ }.
And the map is consuming/reading the whole filehandle. So if you're really doing the second make_path, you will end up with no input at all. Update: Corion already caught this and more.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Use Mkdir to create dir from list
by GregorySRobinson (Initiate) on Jun 21, 2012 at 13:42 UTC | |
Re^2: Use Mkdir to create dir from list
by GregorySRobinson (Initiate) on Jun 22, 2012 at 13:22 UTC |
In Section
Seekers of Perl Wisdom