Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
That would be the file. So how can Perl just run a way to call a 'require' on that file to pull it in, but only for checking for errors and if it contains any just give me the results instead of actually doing a require and then getting a software error?#File Name: my_code.conf ## Subroutines in this file: ### sub1 ### sub2 ### sub3 sub sub1 { # Some code return 1; } sub sub2 { # Some code return 1; } sub sub3 { # Some code return 1; } 1;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: question about checking a script for errors from within a perl program
by drench (Beadle) on Mar 21, 2009 at 07:18 UTC | |
|
Re: question about checking a script for errors from within a perl program
by Your Mother (Archbishop) on Mar 21, 2009 at 07:37 UTC |