home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.perl
- Path: sparky!uunet!charon.amdahl.com!pacbell.com!ames!agate!stanford.edu!leland.Stanford.EDU!donghao
- From: donghao@leland.Stanford.EDU (dong hao zhang)
- Subject: How to output % symbol in perl
- Message-ID: <1992Nov19.004813.16052@leland.Stanford.EDU>
- Sender: news@leland.Stanford.EDU (Mr News)
- Organization: DSG, Stanford University, CA 94305, USA
- Distribution: usa
- Date: Thu, 19 Nov 92 00:48:13 GMT
- Lines: 15
-
- Suppose we run a file like the following:
-
- #! /usr/pubsw/bin/perl
- printf STDOUT "\% A Latex Picture. \n";
-
- The output of the above file is:
- A Latex Picture.
- instead of the desired: % A Latex Picture.
-
- Any idea why the backslash does not protect the % symbol from
- being interpreted ? And how may I output the % symbol with a perl script?
-
- Thanks for any help.
-
- Dong Hao Zhang donghao@leland.stanford.edu
-