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
don't you love perl? ;-)$ perl -wle '$x=$y=1.2; $x+=1.1; $x-=1.1; $,=$"; print $x, $y, $x == $ +y' 1.2 1.2
--
AltBlue.
AltBlue.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: #perl.br calc - A Perl Shell
by ambrus (Abbot) on Jun 01, 2006 at 09:02 UTC |
In Section
Cool Uses for Perl