Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!usc!samsung!emory!ogicse!iwarp.intel.com!news From: merlyn@iwarp.intel.com (Randal L. Schwartz) Newsgroups: comp.lang.perl Subject: Re: Perl STDIN and ARGV Message-ID: <1991Jan31.002850.10212@iwarp.intel.com> Date: 31 Jan 91 00:28:50 GMT References: <1991Jan30.153743.10868@eci386.uucp> Sender: news@iwarp.intel.com Reply-To: merlyn@iwarp.intel.com (Randal L. Schwartz) Organization: Stonehenge; netaccess via Intel, Beaverton, Oregon, USA Lines: 13 In-Reply-To: jmm@eci386.uucp (John Macdonald) In article <1991Jan30.153743.10868@eci386.uucp>, jmm@eci386 (John Macdonald) writes: | Now, to beat Randall to it (if he hasn't already done it a year ago)... | | perl -pe '' '|echo Just' '|echo another' '|echo Perl' '|echo hacker' Nope, haven't done that. But to get it "right", you need: perl -pe 's/\n/ /;' 'echo Just|' 'echo another|' 'echo Perl|' 'echo -n hacker,|' -- /=Randal L. Schwartz, Stonehenge Consulting Services (503)777-0095 ==========\ | on contract to Intel's iWarp project, Beaverton, Oregon, USA, Sol III | | merlyn@iwarp.intel.com ...!any-MX-mailer-like-uunet!iwarp.intel.com!merlyn | \=Cute Quote: "Intel: putting the 'backward' in 'backward compatible'..."====/