NateTut has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl use strict; use warnings; $| = 1; # # Main # my $SaveSTDIN; print "\033[21t;"; my $Response = <STDIN>; open(STDIN, "<&$SaveSTDIN"); print("\$Response\[$Response\]\n"); my @Characters = split(//, $Response); foreach my $Character (@Characters) { print("\[$Character\]\[" . (ord($Character)) . "\]\n"); }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Reading the Putty Window Title (or how can I read from STDIN with out having to hit the [Enter] key?
by almut (Canon) on Sep 04, 2009 at 18:48 UTC | |
by NateTut (Deacon) on Sep 04, 2009 at 18:52 UTC |