Path: utzoo!utgpu!cunews!micor!latour!ecicrl!eci386!jmm From: jmm@eci386.uucp (John Macdonald) Newsgroups: comp.lang.perl Subject: Re: Perl STDIN and ARGV Message-ID: <1991Jan30.153743.10868@eci386.uucp> Date: 30 Jan 91 15:37:43 GMT Reply-To: jmm@eci386.UUCP (John Macdonald) Organization: Elegant Communications, Inc. Lines: 20 In reading this discussion about STDIN, ARGV, and the <> magic scanner, I had a thought cross my mind, and tried it out. The command: perl -pe '' '|ps' '|who' printed the output of a ps and a who command! In processing the command line arg list as "files" using the <> magic cookie, you can have all of the magic filename control handling that any other open provides - pipes, redirection of file descriptors, etc. 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' -- Cure the common code... | John Macdonald ...Ban Basic - Christine Linge | jmm@eci386