home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / lang / perl / 6868 < prev    next >
Encoding:
Internet Message Format  |  1992-11-07  |  1.1 KB

  1. From: lynch@hpcc01.corp.hp.com (Howard Lynch)
  2. Date: Fri, 6 Nov 1992 00:39:51 GMT
  3. Subject: require "did not return a true value" ???
  4. Message-ID: <1180032@hpcc01.corp.hp.com>
  5. Organization: OCD IC MFG
  6. 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
  7. Newsgroups: comp.lang.perl
  8. Lines: 30
  9.  
  10. Hello, I'm a novice perl user who is VERY grateful for help received so
  11. far from readers of this notes group.  I have a problem that seems so
  12. simple that I'm a bit embarassed that I can't figure out what's going
  13. on, but am frustrated enough to expose my ignorance.
  14.  
  15. What does this error message mean?  ('hpocia.' is my ksh prompt)
  16.  
  17.     hpocia. perl1.pl
  18.     perl2.pl did not return a true value at ./perl1.pl line 4.
  19.  
  20. Here is the script, and the file that it is trying to 'require':
  21.  
  22.     hpocia. cat perl1.pl
  23.     #!/usr/local/bin/perl.4.019
  24.     #
  25.     
  26.     require 'perl2.pl';
  27.     
  28.     print "done\n";
  29.     
  30.     hpocia. cat perl2.pl
  31.     sub perl2 {
  32.             print "test from perl2\n";
  33.             }
  34.     
  35. THANKS for any feedback!
  36.     
  37. Howard Lynch
  38. HP OCD IC Manufacturing
  39. hl@hpocia.sj.hp.com
  40.