http://www.perlmonks.org?node_id=552991


in reply to #perl.br calc - A Perl Shell

Perl, computing... hmm ;-) Compare these:
$ echo 'x=y=1.2; x+=1.1; x-=1.1; x; y; x==y' |bc |xargs echo 1.2 1.2 1
$ perl -wle '$x=$y=1.2; $x+=1.1; $x-=1.1; $,=$"; print $x, $y, $x == $ +y' 1.2 1.2
don't you love perl? ;-)
--
AltBlue.