in reply to passing lexical filehandles

One more style note:
foreach (in $root) { my $thing = $_;
is more idiomatically written:
foreach my $thing (in $root) {
or more commonly:
for my $thing (in $root) {

Replies are listed 'Best First'.
Re^2: passing lexical filehandles
by girarde (Hermit) on Jan 16, 2014 at 20:04 UTC
    Thank you.