On Wed, Aug 22, 2001 at 11:09:13AM +0530, Karthik Krishnamurthy wrote:
> wouldn't it be better to check ARGV to see if arguments have been
> passed. if input. else read on STDIN.

You missed his last example:


On Tue, Aug 21, 2001 at 03:44:05PM -0400, Andrew G.McArthur wrote:
> cat numbers.list | squareroot 25 144

It calculates based on the numbers in numbers.list and @ARGV.

Personally, I'd be at a loss to figure out which came first, numbers.list or
@ARGV, but that was one of Andrew's design requirements.


Michael
--
Administrator                      www.shoebox.net
Programmer, System Administrator   www.gallanttech.com
--

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

Reply via email to