Re: Perl equivalent of Unix time command

2008-09-07 Thread Jeff Pang
2008/9/8 Melroy <[EMAIL PROTECTED]>: > Hi all, > I want to benchmark a bunch of running processes using Perl , but I > could not find any equivalent for the unic time coammnd in perl? Can > someone point to me > if such a function exists in perl? use Benchmark::Timer; http://search.cpan.org/~dcop

Re: Perl equivalent of Unix time command

2008-09-07 Thread Mr. Shawn H. Corey
On Sun, 2008-09-07 at 09:30 -0700, Melroy wrote: > Hi all, > I want to benchmark a bunch of running processes using Perl , but I > could not find any equivalent for the unic time coammnd in perl? Can > someone point to me > if such a function exists in perl? The only command I found was > "times",

Perl equivalent of the unix time command

2008-09-07 Thread Melroy
Hi all, Is there a perl equiavelnt of the unix time command to find out how long a given process takes to run? google search revealed no help. The only thing I found was the times command, but I don't think it does what I want. (Basically I want to find out how long a given process takes to run -

Perl equivalent of Unix time command

2008-09-07 Thread Melroy
Hi all, I want to benchmark a bunch of running processes using Perl , but I could not find any equivalent for the unic time coammnd in perl? Can someone point to me if such a function exists in perl? The only command I found was "times", but I don't know how to use it. doing a websearch did not hel

Re: Delete file if it contains x y or z

2008-09-07 Thread Peter Scott
On Sat, 06 Sep 2008 16:01:08 +0100, brian54321uk wrote: > Just tried this, nothing happened at all. Really. $ echo abc > /tmp/bar/one $ echo xyz > /tmp/bar/two $ echo ab..yz > /tmp/bar/three $ ls /tmp/bar one three two $ cat /tmp/foo #!/usr/bin/perl use strict; use warnings; sub delete_contain