Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

Re: Use Mkdir to create dir from list

by Your Mother (Chancellor)
on Jun 20, 2012 at 13:21 UTC ( #977334=note: print w/replies, xml ) Need Help??

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

    Currently Studying the threads and attempting to understand each replies ramifications. I believe I may have an issue with my code having access to File::Path so working to verify the module is active now. At this moment no errors with current version. Yet no directories as well.

Re^2: Use Mkdir to create dir from list
by GregorySRobinson (Initiate) on Jun 22, 2012 at 13:22 UTC

    As of 2012.06.22 recommended solutions do not provide directories from list in ASCII file. Still reading through manuals and looking for error codes to understand problem.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://977334]
[Tanktalus]: My basic problem right now is that if I were willing to move, I could be back in Toronto with a pay raise. We have a number of reasons for not wanting to do that.
[marioroy]: I had to backslash the backslash inside qx.
[Tanktalus]: marioroy++ # nice catch
[Lady_Aleena]: marioroy, that makes kinda makes sense.
[Discipulus]: yes i can survive also in younger town.. but when i passed i saw many strange letters..
[Lady_Aleena]: marioroy, sorry, I am not making sense right now.

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (10)
As of 2017-04-23 20:18 GMT
Find Nodes?
    Voting Booth?
    I'm a fool:

    Results (432 votes). Check out past polls.