in reply to Re: Analyzing Files Within a Directory
in thread Analyzing Files Within a Directory
i tend to use a construct like this
these days, since i want to use the list later. in this case i might changesub find_temp{ my $dir=shift; my @txts; find( sub { return unless (-f $File::Find::name); push @txts,$File::Find::name;; } , $dir.'/tmp/'); return \@txts ; } # find temp
topush @txts,$File::Find::name;;
even if @txts is a bad name for it now. I knew the only thing in those dirs were .txt files and subdirspush @txts,[$File::Find::name, -C _, -M _, -A _];
|
|---|