in reply to Directly assigning Filehandle
untested for obvious reasons :-)sub read_file { my $name = shift; open my $fh,"<",$name or die "can't open $name; $!"; while (<$fh>) { chomp; read_file($_) if -f $_; } close $fh; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Directly assigning Filehandle
by ikegami (Patriarch) on May 04, 2005 at 16:04 UTC | |
by chromatic (Archbishop) on May 04, 2005 at 16:18 UTC | |
by ikegami (Patriarch) on May 04, 2005 at 16:23 UTC |