Hi all,
I'm quite new to world of Perl and have a few questions. I'm trying to write a calculator program where exactly two numbers are entered, and that they are actually numbers.
I'm really hung up on how to to ensure exactly two numbers are entered! Hints and suggestions are welcome.
The second part seems clear to me:
unless ($value =~ /^\d+$/){
"$value contains a letter. Numbers don't have letters in them!!!\n";
die;
}