home *** CD-ROM | disk | FTP | other *** search
- From: lynch@hpcc01.corp.hp.com (Howard Lynch)
- Date: Fri, 6 Nov 1992 00:39:51 GMT
- Subject: require "did not return a true value" ???
- Message-ID: <1180032@hpcc01.corp.hp.com>
- Organization: OCD IC MFG
- Path: sparky!uunet!cis.ohio-state.edu!zaphod.mps.ohio-state.edu!uwm.edu!spool.mu.edu!sdd.hp.com!scd.hp.com!hpscdm!hplextra!hpcss01!hpcc05!hpcc01!lynch
- Newsgroups: comp.lang.perl
- Lines: 30
-
- Hello, I'm a novice perl user who is VERY grateful for help received so
- far from readers of this notes group. I have a problem that seems so
- simple that I'm a bit embarassed that I can't figure out what's going
- on, but am frustrated enough to expose my ignorance.
-
- What does this error message mean? ('hpocia.' is my ksh prompt)
-
- hpocia. perl1.pl
- perl2.pl did not return a true value at ./perl1.pl line 4.
-
- Here is the script, and the file that it is trying to 'require':
-
- hpocia. cat perl1.pl
- #!/usr/local/bin/perl.4.019
- #
-
- require 'perl2.pl';
-
- print "done\n";
-
- hpocia. cat perl2.pl
- sub perl2 {
- print "test from perl2\n";
- }
-
- THANKS for any feedback!
-
- Howard Lynch
- HP OCD IC Manufacturing
- hl@hpocia.sj.hp.com
-