Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^3: ** operator in perl

by TimToady (Parson)
on Feb 03, 2009 at 23:30 UTC ( #741139=note: print w/ replies, xml ) Need Help??


in reply to Re^2: ** operator in perl
in thread ** operator in perl

I was taught to use a plus to disambiguate: print +( ... ) is that no longer accepted?
That's still fine in Perl 5, but Perl 6 disambiguates it on the basis of the whitespace alone, which is what most newcomers seem to expect. Also, unary + actually means something in Perl 6, and wouldn't work anymore for the purpose of doing nothing. So the Perl 5 usage is deprecated in that sense. But only if you believe in Perl 6... :-)

Actually, what most people expect is for Perl to read their minds, but we've been having some trouble implementing that part, so we may put it off till Perl 7.


Comment on Re^3: ** operator in perl
Re^4: ** operator in perl
by deprecated (Priest) on Feb 03, 2009 at 23:32 UTC
    All this makes me think I'm going to have to re-learn perl or stick with Ruby. :(

    --
    Tilly is my hero.

      Perl 5 and 6 have less in common than Haskell and 6. Actually, 6 is called perl because it is written by the same author(s). Proof? It doesn't run 5 code. So yes, you will have to learn this whole new language or find something new that suits you.
        To quote S01:
        Migration in the other direction is also important. In Perl 6 mode, one can drop back to Perl 5 mode with use v5 at the beginning of a lexical block. Such blocks may be nested

        Please stop spreading FUD.

        Perl 5 and 6 have less in common than Haskell and 6.

        Let's see. Haskell is a pure, lazy, functional language with latent static typing. Perl 6 is an operator-oriented multiple-paradigm language with some laziness guarantees and optional manifest dynamic typing. Perl 5 is an operator-oriented multiple-paradigm language with syntactically-ignored manifest typing.

        I really don't see the Haskell/Perl 6 similarities.

Re^4: ** operator in perl
by Lawliet (Curate) on Feb 04, 2009 at 00:08 UTC
    So the Perl 5 usage is deprecated in that sense.

    ARGV! ARGH! I was planning on replying and making that joke.

    And you didn't even know bears could type.

Re^4: ** operator in perl
by shmem (Canon) on Feb 09, 2009 at 01:25 UTC
    Actually, what most people expect is for Perl to read their minds

    Well. A Real Gift. Actually, what Perl expects from most people is reading the minds of its developers.

    Wow. This has been blunt. I don't mean it that way...

    Going from low-level Perl (a.k.a Baby-Perl) to Sindarin Perl is a steady learning curve, along which one experiences many pitfalls, reasonable and questionable defaults, and really weird but useful things, and it is most helpful to get acquainted with Perl's history to understand why things in Perl are as they are. Practice sharpens the understanding, there's always something new to explore and find, at every corner are the thoughts, not only of you, but many, forged into code, at times long forgotten. Understanding Perl is in great part understanding its history, its whences and whys: it is reading the mind of its developers, and much wisdom can come thereof.

    Going from Perl 5 to Perl 6 is like moving from Sindarin to Quenya. In the Sindarin world, that's the high-level language spoken by those who have been in the blessed realm of Valinor, and came back to Middle-Earth.

    But we Grey-Elves haven't been there, and we are not Baby-Perl-Speakers any more. We know Valinor's lore by third hand, from Tales of Apocalypses and Synopses, and so we will have to read your minds to somehow keep our language fluent and our expressions unambiguous, and mixing Sindarin with Quenya will lead to trouble... that seems to be the biggest obstacle for transition.

    The Grey-Elves did choose not to leave the lands where they awoke and saw the stars..

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://741139]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2014-07-24 02:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (156 votes), past polls