home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!usc!news!netlabs!lwall
- From: lwall@netlabs.com (Larry Wall)
- Newsgroups: comp.lang.perl
- Subject: Re: minor bug report (or interesting behavior)
- Message-ID: <1992Aug14.011413.18043@netlabs.com>
- Date: 14 Aug 92 01:14:13 GMT
- References: <1992Aug6.154354.29565@spool.cs.wisc.edu>
- Sender: news@netlabs.com
- Distribution: na
- Organization: NetLabs, Inc.
- Lines: 33
- Nntp-Posting-Host: scalpel.netlabs.com
-
- In article <1992Aug6.154354.29565@spool.cs.wisc.edu> cargille@calypso.cs.wisc.edu (Allan Cargille) writes:
- :
- : Hi, I just started using perl and didn't know where to send bug
- : reports. These may not even be bugs (depending on your definition, of
- : course!)
- :
- : 1. I tried to use a format field of "@<<<<<<<<<<<<<<<>>>>>>>>>>>>>"
- : just for fun, to see if perl would justify both ends. I invoked
- : perl and I assume it started to compile the code. The machine
- : hung and the disk paged like crazy until I got an "out of memory"
- : error! During this time I couldn't kill it with control-C or halt
- : it with control-Z. Interesting. I know the answer is "don't do
- : that!" but thought someone want to know.
- :
- : 2. Also trying for the same result, I tried a format statement of
- : @<<<<<<<<<<<<<<<<<<@>>>>>>>>>>>>>>>>>>>>
- : $_, $_
- : and it appeared to use the same information in $_ twice. If
- : arguments are passed "by value" then this would be correct; if "by
- : reference" then it wouldn't be. Which is it? Is there a way to
- : force this to do what I wanted it to?
-
- The short answer is: If you want nroff, use nroff.
-
- The long answer is: Perl can only left or right justify fields as a
- whole. To do both ends at once implies some kind of fancy algorithm to
- insert spaces in the middle. Perl has no such algorithm, and I have no
- intention of trying to supply one. Durn ugly anyway. Mutter, grumble...
-
- Of course, if you're excruciatingly persuasive, I reserve the right to
- change my mind. :-)
-
- Larry
-