home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / lang / perl / 5022 < prev    next >
Encoding:
Internet Message Format  |  1992-07-29  |  749 b 

  1. Path: sparky!uunet!darwin.sura.net!wupost!sdd.hp.com!uakari.primate.wisc.edu!ames!nsisrv!Pt!de3a1066a.osd.mil!tswenson
  2. From: tswenson@de3a1066a.osd.mil (Tim Swenson)
  3. Newsgroups: comp.lang.perl
  4. Subject: CHR$() in Perl
  5. Summary: Looking for the opposite of ord()
  6. Message-ID: <tswenson.712440785@de3a1066a.osd.mil>
  7. Date: 29 Jul 92 20:13:05 GMT
  8. Sender: news@Pt.hq.af.mil
  9. Lines: 14
  10.  
  11. This may be simple, but I've looked through
  12. the Camel book and can't find a thing on this.
  13.  
  14. I'm looking for the opposite of the ord function.
  15. (The same as CHR$() in Basic).  Given a number I
  16. need to print the ASCII value of that number.
  17. In other works, if X=65 I want to print an A.
  18.  
  19. I need to know how to do this in Perl.
  20.  
  21. Thanks in advance,
  22.  
  23. Tim Swenson
  24. DPLDC, Pentagon
  25.