Dear all,

I'm developing a perl program in UNIX that I want to sometimes work on 
data from the pipe, sometimes from the command line, and sometimes 
both.  For example, consider the hypothetical program "squareroot".  I 
would like to use it in the following three ways from the command prompt:

 > squareroot 100 1000 25

 > cat numbers.list | squareroot

 > cat numbers.list | squareroot 25 144

I've had no problem with the second two examples, but the first waits 
for input from the STDIN.  How can I get my perl program to know that 
I'm not piping in data from the STDIN?

Thanks,
Andrew McArthur

Josephine Bay Paul Center
Marine Biological Laboratory
7 MBL Street
Woods Hole, MA 02543-1015

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to