home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / lang / perl / 7696 < prev    next >
Encoding:
Text File  |  1993-01-07  |  1.5 KB  |  35 lines

  1. Newsgroups: comp.lang.perl
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!menudo.uh.edu!lobster!nuchat!michael
  3. From: michael@nuchat.sccsi.com (Michael Bentley)
  4. Subject: print/printf broken ?
  5. Message-ID: <1993Jan7.045240.23654@nuchat.sccsi.com>
  6. Organization: South Coast Computing Services, Inc.
  7. Date: Thu, 7 Jan 1993 04:52:40 GMT
  8. Lines: 25
  9.  
  10.  
  11.     I just installed perl-4.035 on a Sun IPX running SunOS 4.1.2.  
  12. The print and printf functions seem to be broken.  I have rebuilt 
  13. perl several times (double checking everything before answering 
  14. the questions posed by configure) - and print *still* only seems to
  15. want to print to a tty device (Printing to stdout is just fine - I 
  16. can even redirect to /dev/console ---- but I *cannot* redirect 
  17. output to a file or a pipe (no error, it just don't do nuthin...)).
  18.  
  19.     I have found a workaround - assigning the value of a sprintf()
  20. call to a scalar variable, and using system("echo $scalar_variable");
  21. but I *REALLY* want to use printf FILEHANDLE instead!  BTW, write() 
  22. works just fine - and I am really perplexed....
  23.  
  24.     Has anyone else run into something similar (perhaps the *same*
  25. problem) ???  If so, pray tell me how you solved it...
  26.  
  27.         ADVthanxANCE,
  28.         michael
  29.  
  30. -- 
  31. +==========================================================================+
  32. |  Michael Bentley (Life would be so much easier if I had the source code) |
  33. |  VoiceNet : (713) 558-8410                                               |
  34. |  E-mail   : michael@nuchat.sccsi.com                                     |
  35.