in reply to Inputing an Operator is it possible?

Placing your angle operator inside of double quotes treats it as a literal "less than" and "greater than" symbol...

Instead try:
chomp($operator = <STDIN>);
with the extra chomp there to get rid of your record input separator, (newline by default) so that you have control over where your newlines go when you print.

Also if you want to add $a and $b instead of printing them out literally, try
print $a + $b, "\n";


Cheers,
Kristina

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.