home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.perl
- Path: sparky!uunet!cs.utexas.edu!convex!convex!tchrist
- From: Tom Christiansen <tchrist@convex.COM>
- Subject: Re: CHR$() in Perl
- Message-ID: <1992Jul30.000824.8976@news.eng.convex.com>
- Originator: tchrist@pixel.convex.com
- Sender: usenet@news.eng.convex.com (news access account)
- Nntp-Posting-Host: pixel.convex.com
- Reply-To: tchrist@convex.COM (Tom Christiansen)
- Organization: CONVEX Realtime Development, Colorado Springs, CO
- References: <tswenson.712440785@de3a1066a.osd.mil>
- Date: Thu, 30 Jul 1992 00:08:24 GMT
- X-Disclaimer: This message was written by a user at CONVEX Computer
- Corp. The opinions expressed are those of the user and
- not necessarily those of CONVEX.
- Lines: 19
-
- From the keyboard of tswenson@de3a1066a.osd.mil (Tim Swenson):
- :This may be simple, but I've looked through
- :the Camel book and can't find a thing on this.
- :
- :I'm looking for the opposite of the ord function.
- :(The same as CHR$() in Basic). Given a number I
- :need to print the ASCII value of that number.
- :In other works, if X=65 I want to print an A.
- :
- :I need to know how to do this in Perl.
-
- Use sprintf with %c or pack with C.
-
- --tom
- --
- Tom Christiansen tchrist@convex.com convex!tchrist
- And don't tell me there isn't one bit of difference between null and space,
- because that's exactly how much difference there is. :-)
- --Larry Wall in <10209@jpl-devvax.JPL.NASA.GOV>
-