Quote:
Originally Posted by sjmarshy
well just make it a bit more complex
while ($flag) {
#whatever code you want here
$input = <>;
if ($input =~ /\S\s/) {
$flag = 0;
}
}
i think that's all characters...
to be honest, I don't think that there's a command to do what you want, you'd have to work around it as far as I'm aware. I'm only a perl novice myself
|
Hi again! Solved the problem (finally found documentation from goggle). I'll just post the code used here for anyone that is interested:
Code:
use Term::ReadKey;
ReadMode('cbreak');
$key = ReadKey(0);
ReadMode('normal');
And here's how I implemented it with my code (as an example of course):
Code:
if (%addresses == null) #checking if array has nothing in it
{print "\n";
print "Nothing stored in records...\n";
print "\nPress any key to continue...";
use Term::ReadKey;
ReadMode('cbreak');
$key = ReadKey(0);
ReadMode('normal');
}
else
{print "\n";
print %addresses;
print "\nPress any key to continue...";
use Term::ReadKey;
ReadMode('cbreak');
$key = ReadKey(0);
ReadMode('normal');
}
Thank's again for your help.