1. I don't think I ever wanted such a thing
  2. So you'd rather have $array[i][j-1]? That would mean that whenever you need to copy the expression between inside and outside the square brackets, you'd have to add/remove $. No thanks!
  3. Backwards compatibility for use strict and you DO WANT those my()s.
  4. Sorry? I don't understand what do you want with the reverse. You can write $_ = shift; in main, but as @_ doesn't mean anything there, you get the next from @ARGV ... that is the script's parameters. Makes perfect sense.
  5. I'm inclined to agree here. I'm not so fond of dots though.
  6. You can: $i > 5 or do {print "No"; last}. It's better to use if(){} or unless(){}
  7. Within curlies, if it looks like a word, it's automatically quoted. It simplifies the code. I don't see how the magic of ++ hurts anything. What did you expect to get from $x = "a"; $x++?
  8. The parser is insanely complicated already, besides what would print 1 + foo(1+1)*2; mean then? Should the foo get 2 and then get its result multiplied by two or should the parser wait for the end of block or semicolon and pass 4 to foo? The rule that guides the first distinction is fairly simple ... If a subroutine name is followed by an opening brace, then its parameters end at the matching closing brace. If not THEN the parameters end at the semicolon or end of block. Keep in mind that print is just a function and it does return a value, even if that value is most often ignored. The filehandle stuff ... well, it's a bit tricky, but the rule above still holds. Don't expect special handling for print and you'll be fine.

Jenda
Enoch was right!
Enjoy the last years of Rome.


In reply to Re: Opinion: where Perl5 wasn't attractive for me by Jenda
in thread Opinion: where Perl5 wasn't attractive for me by rsFalse

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • 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:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, 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, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.