home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!noc.near.net!bigboote.WPI.EDU!bigboote.wpi.edu!john
- From: john@sekrit.WPI.EDU (John Stoffel)
- Newsgroups: comp.lang.perl
- Subject: Re: How to output % symbol in perl
- Date: 19 Nov 92 08:25:26
- Organization: Worcester Polytechnic Institute
- Lines: 25
- Distribution: usa
- Message-ID: <JOHN.92Nov19082526@sekrit.WPI.EDU>
- References: <1992Nov19.004813.16052@leland.Stanford.EDU>
- NNTP-Posting-Host: sekrit.wpi.edu
- In-reply-to: donghao@leland.Stanford.EDU's message of 19 Nov 92 00:48:13 GMT
-
- >>>>> On 19 Nov 92 00:48:13 GMT, donghao@leland.Stanford.EDU (dong hao zhang) said:
-
- dong> Suppose we run a file like the following:
-
- dong> #! /usr/pubsw/bin/perl
- dong> printf STDOUT "\% A Latex Picture. \n";
-
- dong> The output of the above file is:
- dong> A Latex Picture.
- dong> instead of the desired: % A Latex Picture.
-
- Don't use printf unless you really need to. Use the plain print
- instead. And by using print, you don't have to specify STDOUT either.
- So
-
- print "% A LaTeX Picture. \n";
-
- will work now.
-
- John
- --
- Youth of today! Join me in a mass rally for traditional mental attitudes!
- -------------------------------------------------------------------------------
- john@wpi.wpi.edu | Work Station Specialist | Worcester Polytechnic Institute
- John Stoffel | 508-831-5512 (work) | Worcester, MA 01609
-