$ echo 0 >foo.pl $ perl -e"require q!foo.pl!;" foo.pl did not return a true value at -e line 1. $ perl -Mdiagnostics -e"require q!foo.pl!;" foo.pl did not return a true value at -e line 1 (#1) (F) A required (or used) file must return a true value to indicate + that it compiled correctly and ran its initialization code correctly. +It's traditional to end such a file with a "1;", though any true value +would do. See perlfunc/require. Uncaught exception from user code: foo.pl did not return a true value at -e line 1. at -e line 1 $ perl -e"require q!foo.pl!;" 2>&1 |splain foo.pl did not return a true value at -e line 1 (#1) (F) A required (or used) file must return a true value to indicate + that it compiled correctly and ran its initialization code correctly. +It's traditional to end such a file with a "1;", though any true value +would do. See perlfunc/require. $
In reply to Re: did not return a true value: what is wrong?
by Anonymous Monk
in thread did not return a true value: what is wrong?
by cthar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |