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

Re^5: remove directory in perl

by thunders (Priest)
on May 20, 2009 at 16:06 UTC ( #765272=note: print w/replies, xml ) Need Help??

in reply to Re^4: remove directory in perl
in thread remove directory in perl

That's true, for the specific case I gave -M is simpler. The only thing to note is that -M doesn't use time(). It uses script start time. So in a long running process it may not be what you want:

$ perl -e ' print -M "/usr/bin","\n"; sleep(120); print -M "/usr/bin", +"\n"' 5.9218287037037 5.9218287037037

Thanks, I didn't realize I was responding to a question that has already been thoroughly answered.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://765272]
[RonW]: My daughter and I like to "fly" Flightgear. What ever aircraft we pick, she usually shoots me out of the sky
[Corion]: Oooh. I didn't know about Flightgear. I've been looking at maybe playing with a flight simulator again, thanks!

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (8)
As of 2017-02-27 18:10 GMT
Find Nodes?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?

    Results (390 votes). Check out past polls.