Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

Re^2: Use Mkdir to create dir from list

by GregorySRobinson (Initiate)
on Jun 20, 2012 at 13:07 UTC ( #977328=note: print w/replies, xml ) Need Help??

in reply to Re: Use Mkdir to create dir from list
in thread Use Mkdir to create dir from list

Yes, and preformed a number of google searches Have also printed out most of the Perl manuals and spend time searching for the logic behind why my code as is does not preform as expected.

  • Comment on Re^2: Use Mkdir to create dir from list

Replies are listed 'Best First'.
Re^3: Use Mkdir to create dir from list
by Corion (Pope) on Jun 20, 2012 at 13:12 UTC

    Then consider looking at the debug facilities that File::Path offers for make_path. Especially the error facility.

    Also, from your code, it is not clear to me which statements are supposed to execute together and which are to demonstrate your problem. Especially the following two lines:

    my @thefiles = <$GSR_fh>; ... make_path(map {chomp} <$GSR_fh>);

    Once you've read a filehandle (like $GSR_fh) to its end, you need to seek to the start again before you can read the file again. But why re-read the file if you can use the data in @thefiles?

      Confused by comparing this reply to other thread where use of $_ is added. Pondering the meaning.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://977328]
[LanX]: interesting... a friedn of mine has the familyname "Hell" - I susally call her Hell Girl

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (6)
As of 2017-12-12 16:38 GMT
Find Nodes?
    Voting Booth?
    What programming language do you hate the most?

    Results (335 votes). Check out past polls.