Rupert Heesom wrote at Wed, 10 Jul 2002 16:17:41 +0200:

> I'm working with directories in which there should be a number of graphs files; one 
>TIFF file, one
> PDF file.
> 
> I'm wanting to find which TIFF files there is no corresponding PDF file for.

I wrote something similar to find ps not yet converted to pdfs:

use Set::Scalar;

my $ps   = Set::Scalar->new(map /(.*).ps/, <*.ps>);
my $pdf  = Set::Scalar->new(map /(.*).pdf/, <*.pdf>);

my $ps_without_pdfs = $ps - $pdf;

`ps2pdf $_.ps` for $ps_without_pdfs->elements();


Best Wishes,
Janek


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to