Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

Re: I can't find anything

by shockme (Chaplain)
on Nov 06, 2003 at 19:05 UTC ( #305118=note: print w/replies, xml ) Need Help??

in reply to I can't find anything

I feel your pain. When I first started, I used to keep snippets of code in files with names like "read-all-filenames", "connect-to-mysql", etc. That way, until I became more familiar with the concepts, I could quickly put my hands on examples.

If you haven't already, see How to RTFM in the Tutorials section. It's a very good read, and the follow-up comments are quite helpful too. I refer to it every so often, because I'm always forgetting something.

As to processing files by date, see Getting and Setting Timestamps in the Cookbook. (My version is out-dated, but if you look in the index under file access -> timestamps, you should be able to find it. It's page 313 in my edition.)

($READTIME, $WRITETIME) = (stat($filename))[8,9];

Since you apparently are going to have to do without File::Copy, there's no shame in making a system call:

system("copy $oldFile $newFile") == 0 || die "$?\n";

Hang in there, and keep pounding away. The more you use it, the more familiar it'll become.

If things get any worse, I'll have to ask you to stop helping me.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://305118]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2018-02-21 00:33 GMT
Find Nodes?
    Voting Booth?
    When it is dark outside I am happiest to see ...

    Results (274 votes). Check out past polls.