SPUG: Control Z doesn't work either
Matthew Lasar
matthew at lasarletter.com
Tue Feb 29 00:49:24 CST 2000
Hi folks:
I've been sitting around this evening having a very frustrating time. This
program, which I've beening running on Windows 95 via the DOS prompt, comes
with instructions from "Leaning Perl" that I should enter my lines and then
hit control-D. A friend explained that that's a unix command, and that for
DOS I should use control-Z But that isn't actually working either. I enter
some strings. I hit control Z, then return, and I get nothing, a blank
line. Even "answer" doesn't print.
What am I doing wrong? Any thoughts gratefully accepted.
thanks, Matthew Lasar
#c:\perl -w
print "Enter the line number: "; chomp($a = <STDIN>);
print "Enter the lines, end with ^D:\n"; @b = <STDIN>;
print "Answer: $b[$a-1]";
*.*
"The absent are always wrong."
--French proverb
Matthew Lasar
171 Andover Street
San Francisco, CA 94110
matthew at lasarletter.com
www.lasarletter.com
415-641-1152
415-826-6964
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
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