http://qs321.pair.com?node_id=212494


in reply to Re: Re: Input/Output through the Keyboard
in thread Input/Output through the Keyboard

Using eval is one solution:
$_ = <STDIN>; print eval;