From: Paul Lutus Date: 2006-09-28T05:50:15+09:00 Subject: Re: how to determine if pipe is given greg wrote: > thanks, a > > This kind of sucks though. Why? One performs a test to determine if there is a pipe. That seems reasonable. > apparently in perl, if there is a piped input, '-' will show up > automatically in ARGV. Have you done an experiment to see if this is true? In fact, the user of the script must provide this symbol as an argument if he wants the read a pipe, then the script must interpret the presence of this symbol as a signal to commence reading a pipe, by the way a very common *nix convention. It's all very non-automatic. > I think I will propose this change to Ruby. No sense doing it in Ruby if it isn't done in Perl. It isn't done in Perl. -- Paul Lutus http://www.arachnoid.com