Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^3: Use Mkdir to create dir from list

by Corion (Pope)
on Jun 20, 2012 at 13:12 UTC ( #977330=note: print w/ replies, xml ) Need Help??


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

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?


Comment on Re^3: Use Mkdir to create dir from list
Select or Download Code
Re^4: Use Mkdir to create dir from list
by GregorySRobinson (Initiate) on Jun 21, 2012 at 13:35 UTC
    Confused by comparing this reply to other thread where use of $_ is added. Pondering the meaning.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://977330]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (15)
As of 2014-07-22 16:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (119 votes), past polls