Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Moving a .html file

by bitingduck (Chaplain)
on Feb 25, 2012 at 03:31 UTC ( [id://956047]=note: print w/replies, xml ) Need Help??


in reply to Moving a .html file

I stripped out your front matter (everything from "my ($buffer)up to the commented out prints of your first and second choices) and ran it with fixed values ("fred" and "bob") for $firstChoice and $secondChoice and uncommented your second try (the "mv" command), and it worked fine, once I made the dynamics directory.

So if you uncomment your debug code to print the $firstChoice and $secondChoice and there's something in them, you should get something that works. Have you checked that you can create files manually in the directory where you want to create them?

Why isn't yours working? My first guess would be a permissions problem for the destination directory. Do you need to do a mkdir to create the destination directory (I didn't do that before the first time I ran your code and got an error back)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (7)
As of 2024-04-25 08:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found