in reply to 'do' command is dead? Surely not?
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.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: 'do' command is dead? Surely not?
by ACI (Acolyte) on May 19, 2017 at 14:12 UTC | |
by Eily (Monsignor) on May 19, 2017 at 14:24 UTC | |
by KurtZ (Friar) on May 19, 2017 at 14:28 UTC | |
by davido (Cardinal) on May 19, 2017 at 14:38 UTC | |
by haukex (Archbishop) on May 19, 2017 at 16:27 UTC | |
by ACI (Acolyte) on May 19, 2017 at 17:13 UTC | |
by syphilis (Archbishop) on May 20, 2017 at 09:49 UTC | |
by ACI (Acolyte) on May 19, 2017 at 14:57 UTC | |
by KurtZ (Friar) on May 19, 2017 at 14:53 UTC | |
by tobyink (Canon) on May 19, 2017 at 15:09 UTC | |
| |
by dasgar (Priest) on May 19, 2017 at 18:24 UTC | |
| |
by haukex (Archbishop) on May 19, 2017 at 14:25 UTC | |
by ACI (Acolyte) on May 19, 2017 at 14:45 UTC | |
by Corion (Patriarch) on May 19, 2017 at 14:53 UTC | |
by ACI (Acolyte) on May 19, 2017 at 15:08 UTC | |
| |
by ACI (Acolyte) on May 19, 2017 at 15:03 UTC |
In Section
Seekers of Perl Wisdom