HeadScratcher has asked for the wisdom of the Perl Monks concerning the following question:
Thanks Oh Holly ones!!#!/usr/bin/perl -w use strict; use File::Find; my @directories = (".", "I:\\Temp\\"); my @foundfiles; print "Please drag error list \n\t\t"; chop($jpglist=<STDIN>); open (JPG, "$jpglist") || die "can't open JPG"; @jpeg = <JPG>; close(JPG); foreach $line(@jpeg); { find( sub { push @foundfiles, $File::Find::name if /$line/ }, @directo +ries ); open (OUT, ">>I:\\temp\\Outlist.txt") || die "can't open jpgfiles"; print OUT join("\n",@foundfiles), "\n"; close(OUT); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: feed File::Find::Name from a list
by chromatic (Archbishop) on Oct 05, 2004 at 19:09 UTC | |
by Thelonius (Priest) on Oct 05, 2004 at 21:06 UTC | |
by HeadScratcher (Novice) on Oct 05, 2004 at 22:02 UTC | |
by cyclist38 (Hermit) on Oct 06, 2004 at 08:47 UTC | |
by jdalbec (Deacon) on Oct 05, 2004 at 22:15 UTC | |
by jdporter (Paladin) on Oct 06, 2004 at 13:56 UTC |