in reply to idiom question

return status of print is always 1
..for certain values of always. :-) print can return a non-successful status for a number of reasons. What if you try to print to a file that resides on a filesystem that is full? What if you're trying to print to a socket whose endpoint has crashed? print will tell you about all of these and more.

thor

Replies are listed 'Best First'.
Re: Re: idiom question
by geektron (Curate) on Jan 18, 2004 at 20:18 UTC
    point taken.

    print to STDOUT rarely, if ever, fails. and that's all i was doing.