On Nov 18, Leah said: >Is there a way to read files given on the commandline which begin or end >with '|' (pipe) using <>, -p, or -n? It doesn't seem to be possible. >It seems strange that perl would trust the user to open arbitrary pipes. It works for me: perl -lne 'print scalar reverse' -- 'date |' -- Jeff "japhy" Pinyan japhy@pobox.com http://www.pobox.com/~japhy/ RPI Acacia brother #734 http://www.perlmonks.org/ http://www.cpan.org/ <stu> what does y/// stand for? <tenderpuss> why, yansliterate of course. [ I'm looking for programming work. If you like my work, let me know. ]Thread Previous