in reply to Re: Formating in print
in thread Formating in print
when i used <STDIN> it would show what i was typing. Now it shows nothing even when i print
heres my new code:
#!/usr/bin/perl # The distance formula!!! use Term::ReadKey; print "What is the first point? ("; ReadMode 'cbreak'; $x1 = ReadKey (0); print "$x1,"; ReadMode 'cbreak'; $y1 = ReadKey (0); print "$y1)\n"; print "What is the second point? ("; ReadMode 'cbreak'; $x2 = ReadKey (0); print "$x2,"; ReadMode 'cbreak'; $y2 = ReadKey (0); print "$y2)\n";
im confused with this Term::ReadKey
STDIN seems much more friendly :P
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Formating in print
by emilford (Friar) on Apr 11, 2002 at 03:16 UTC | |
by CompuKid101 (Novice) on Apr 11, 2002 at 04:09 UTC |