From a recent talk[1], what are x, y, z in the following?
x = 7 ÷ 2;
y = -7 ÷ 2;
z = .1 + .2 - .3
x y z
3.5 -3.5 0 # human
3 ? tiny number # c89; ? depends on compiler
3 -4 tiny number # ruby
3 -4 tiny number # python 2/3
3 -3 0 # bc
3.5 -3.5 tiny number # perl5
3.5 -3.5 0 # perl6
----It isn't just basic math.
How "long" is the following string?
ปฏิบัติจริง
7 characters # human
len("ปฏิบัติจริง") = 33 # python 2
len("ปฏิบัติจริง") = 11 # python 3
"ปฏิบัติจริง".length = ? # ruby
(For Ruby, I've found "the core language does not provide a way to count [human perceived characters]". [3] Is that still correct or out of date?)----
> Perl suffers from having too many magical operators that makes it hard to reason about a snippet of code. I feel Python strikes the right balance.
To quote Larry Wall, "Perl 6 ... has been rethought and rebalanced on every level".[4]
It might be interesting for you to pick a couple Perl 5 operators that you consider too magical; then we could look at the merits and demerits of those ops in Perl 5 and their equivalents in Python and Perl 6.
> It's very easy to express ideas I have in mind without worrying about the details [of Python, now, and Perl, back in the day]
This, of course, has explicitly been a deliberate focus of all the Perls. Part of the point of Perl 6 was to remove the bits in Perl 5 that were problematic (including some "too cute/weird" stuff) and to introduce much nicer higher level abstractions (eg grammars instead of just regexes[5]).
----
I've long encountered vocal folk who underestimate or misunderstand Larry Wall and Perl to an absurd degree. Perl has been focused for over two decades on making it easy to get the right results when doing basic practical things (like integer division and counting characters) and, imo, that ought to be obvious to anyone who looks at the matter carefully.
----
[1] http://www.slideshare.net/Ovid/perl-6-for-mere-mortals and https://www.youtube.com/watch?v=lpu-3UF_b48
[2] http://www.reddit.com/r/perl/comments/2szv7m/beginner_progra...
[3] http://unicode-programming.readthedocs.org/en/latest/count-c...
[4] http://www.infoworld.com/article/2882300/perl/perl-creator-l...
[5] https://github.com/moritz/json/blob/master/lib/JSON/Tiny/Gra...