Coming from a C++ background (though not having used it for a
long time), it always made a lot of sense to me, that the method
call operator is ->. After all, objects in Perl are used
via references, which is closer to a pointer to an object than
to an object itself.
Loosing the dot as string concatenation is IMHO a rather severe
event. The tilde is a bad replacement choice, in particular in
the form of the assignment operator. $str ~= "ccc" will
be concatenation, $str =~ "ccc" will be matching. Quite
confusing and a likely cause for error.
The visual appearance of -> versus the dot for calling
methods is a bad guide in my opinion, not even taking into account
that code will look more like VB than classic Perl. What will be
gained in changing -> to dot, will be lost from the change
of the dot to the tilde. There is good reason that this character
only appears rarely in code and usually in conjuntion with the equal
sign to form the matching operator.
The esthetics of well written Perl code contrasted with the visual
appearance of a tilde separated file. What a terrible outlook!
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
Outside of code tags, you may need to use entities for some characters:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.
| & || & |
| < || < |
| > || > |
| [ || [ |
| ] || ] ||