RE: Regex exception

2002-07-09 Thread Jason Frisvold
AIL PROTECTED]] Sent: Tuesday, July 09, 2002 10:20 AM To: Jaime Hourihane Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: Regex exception On Jul 9, Jaime Hourihane said: >opendir(DIR, $dir) || die .. >while() { You can't use <> on dirhandles. >unless ~= $

Re: Regex exception

2002-07-09 Thread Jeff 'japhy' Pinyan
On Jul 9, Jaime Hourihane said: >opendir(DIR, $dir) || die .. >while() { You can't use <> on dirhandles. >unless ~= $pattern { > unlink or remove here >} And at least try to post well-formed pseudocode. >} -- Jeff "japhy" Pinyan [EMAIL PROTECTED] http://www.pobox.com/~japhy/

Re: Regex exception

2002-07-09 Thread Jaime Hourihane
or what about unless... opendir(DIR, $dir) || die .. while() { unless ~= $pattern { unlink or remove here } } -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Regex exception

2002-07-09 Thread Nikola Janceski
day, July 09, 2002 9:58 AM > To: [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: Re: Regex exception > > > or what about unless... > > opendir(DIR, $dir) || die .. &g

RE: Regex exception

2002-07-09 Thread Nikola Janceski
why not use foreach() glob() and unlink() instead so it's all done in perl? foreach $file (glob("e:/dir/*.ldb")){ next if $file =~ /exception pattern here/; unlink($file) or die "Cannot unlink $file: $!\n"; } > -Original Message- > From: Ned Cunningham [mailto:[EMAIL PROT