in reply to Re: Formating in print
in thread Formating in print

hmm... it doesnt 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
    I don't really know what to tell you. Like I said, I've never actually had a use for Term::ReadKey, so I've never written any code using it. I just remember reading about and thought it might help. Perhaps one of the other monks can give you some insight. Good luck.
      OK thanks, I'll look around.

      I'll be sure to post when I ger my P.E.R.L.O.C.K. (like my name for it?) done.

      i just need to think of a good mechanism! :-)