RE: Avoid using backticks

2002-07-29 Thread NYIMI Jose (BMB)
Thanks George, I will try ... José. -Original Message- From: George Schlossnagle [mailto:[EMAIL PROTECTED]] Sent: Monday, July 29, 2002 10:27 AM To: NYIMI Jose (BMB) Cc: [EMAIL PROTECTED] Subject: Re: Avoid using backticks You can use the File::Find module. It even has a find2perl

RE: Avoid using backticks

2002-07-29 Thread NYIMI Jose (BMB)
2 10:15 AM To: [EMAIL PROTECTED]; NYIMI Jose (BMB) Subject: Re: Avoid using backticks You should be able to do it with opendir (to open directories and browse the contents) and unlink (to delete files) take a look at the man pages for those two to get you started, if you're still struggling ju

Re: Avoid using backticks

2002-07-29 Thread George Schlossnagle
You can use the File::Find module. It even has a find2perl utility for taking the work of writing a matching subroutine out: Then you get something like #!/usr/local/bin/perl -w use strict; use FindBin qw{$Bin}; use File::Find; find(\&wanted, $Bin); sub wanted { (my ($dev,$ino,$mode,$nl

Re: Avoid using backticks

2002-07-29 Thread Nigel Peck
You should be able to do it with opendir (to open directories and browse the contents) and unlink (to delete files) take a look at the man pages for those two to get you started, if you're still struggling just ask again. HTH Nigel >>> "NYIMI Jose (BMB)" <[EMAIL PROTECTED]> 07/29/02 08:37am