Rudif has asked for the wisdom of the Perl Monks concerning the following question:
Rudif#!/usr/bin/perl -w use strict; use File::Find; use File::Slurp; use Pod::Select; my $dir = "h:/temp/TestAppNotes/Pod/"; my %podstrings; find ( sub { return if -d; ### I would like to assign ### $filestrings{$File::Find::name} = podselect $File::Find::name; + my $tmpfile = "$dir/tmpfile.txt"; podselect {-output => $tmpfile}, $File::Find::name; if (-s $tmpfile) { $podstrings{$File::Find::name} = scalar read_file($tmpfile) } }, $dir); for (keys %podstrings) { printf "%s %d\n", $_, -s $_; } __END__
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Could I redirect stdout back into my script?
by stephen (Priest) on Apr 22, 2001 at 03:53 UTC | |
by runrig (Abbot) on Apr 22, 2001 at 04:01 UTC | |
by stephen (Priest) on Apr 22, 2001 at 04:17 UTC | |
|
Re: Could I redirect stdout back into my script?
by Masem (Monsignor) on Apr 22, 2001 at 03:24 UTC | |
|
Re: Could I redirect stdout back into my script?
by BrotherAde (Pilgrim) on Apr 22, 2001 at 03:53 UTC | |
|
Re: Could I redirect stdout back into my script?
by Rudif (Hermit) on Apr 24, 2001 at 01:47 UTC |