You may want to try adding the error checking from the do docs:
unless (my $return = do $file) { warn "couldn't parse $file: $@" if $@; warn "couldn't do $file: $!" unless defined $return; warn "couldn't run $file" unless $return; }
Update: Oh, and of course Use strict and warnings.
In reply to Re: 'do' command is dead? Surely not?
by haukex
in thread 'do' command is dead? Surely not?
by ACI
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |