Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^5: removing files with perl based on age and name

by Laurent_R (Canon)
on Jul 18, 2014 at 21:45 UTC ( [id://1094269]=note: print w/replies, xml ) Need Help??


in reply to Re^4: removing files with perl based on age and name
in thread removing files with perl based on age and name

Thank you for your detailed answer, roboticus, I fully endorse it. There were numerous things in gurpreetsingh13's post that I would have wanted to comment (not necessarily exactly the sames as you, but mostly along the same lines), but you did it in a masterful way, no point to add further debunking, you just did it right.

Just in case someone might understand it false, I am using almost daily Unix powerful tools (sort, find, cut, etc., sometimes even awk and sed, and many others), and yes, they are very powerful. For example, one thing I am doing regularly is to use the Unix sort utility to sort (usually with relatively complicated sort, field by field, for which the Unix sort is very good) a very large file and then piping the output to a Perl program that will remove duplicates or do all kinds of other interesting things. In some cases, I am also using the Unix shell to create parallel Perl processes in a very easy way. But shelling out of Perl to just stat a file last modification date, to remove a file or changing permissions is just plain stupid non-sense when the language can do it so easily.

To gurpreetsingh13: I did not downvote your original post with the script, because, despite what I said earlier about its shortcomings, I still think it can be considered as a valuable and useful contribution (even though I fully agree with Hippo's comments on it), but, yes, I did downvote your last answer, which is just pathetically wrong, as beautifully demonstrated by roboticus. Having done that, I can see that I am far from being the only one: you've made it to the top worst node of the day (and probably soon top worst node of the week, it is probably just a matter of time for update).

No personal hostility, I think your argument is just plain wrong.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (7)
As of 2024-04-23 18:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found