SPUG: Multiple uses of <STDIN> in a script?
Andrew Sweger
andy at n2h2.com
Fri Oct 15 14:12:57 CDT 1999
On Oct 15, 1999 @ 8:55am, Ryan Erwin wrote:
:} I would run the script (i'll call it /tmp/test.pl) like this:
:} find /tmp | /tmp/test.pl
There's only one stdin handle and it's attached to the output of the find
command. You would have to solicit user input from the attached tty
directly as it is not attached to stdin when your perl script is running.
--
Andrew Sweger <andy at n2h2.com> N2H2, Incorporated
900 Fourth Avenue, Suite 3400
No thanks, I'll just have the Seattle WA 98164-1059
Linux with a side of Perl http://www.n2h2.com/ (206) 336-2947
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
POST TO: spug-list at pm.org PROBLEMS: owner-spug-list at pm.org
Seattle Perl Users Group (SPUG) Home Page: http://www.halcyon.com/spug/
SUBSCRIBE/UNSUBSCRIBE: Replace ACTION below by subscribe or unsubscribe
Email to majordomo at pm.org: ACTION spug-list your_address
More information about the spug-list
mailing list