Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^2: I want you to convince me to learn Perl

by pobocks (Chaplain)
on Sep 25, 2013 at 05:47 UTC ( [id://1055611]=note: print w/replies, xml ) Need Help??


in reply to Re: I want you to convince me to learn Perl
in thread I want you to convince me to learn Perl

I'm also a fan of Perl over Python, and I come to it from literature, so I'm actually even a fan of implicit contexts - but saying that said contexts make Perl less error-prone really doesn't match my experience or anything I've seen. It can make it less verbose for some things once you understand contexts deeply.

Also, given the decisions made in Perl 6 about sigil invariance, it seems pretty clear that the overall drift of the language is away from heavy use of implicit context to determine what code does.
for(split(" ","tsuJ rehtonA lreP rekcaH")){print reverse . " "}print "\b.\n";

Replies are listed 'Best First'.
Re^3: I want you to convince me to learn Perl
by HelenCr (Monk) on Sep 25, 2013 at 14:00 UTC
    pobocks: the Perl internal logic and language consistency are much broader and deeper than just being about implicit context.

    Like I said, when you consider together the Perl referencing/dereferencing system, together with the sigil methodology, the language becomes very powerful, clear, and unambiguous, simultaneously.

    I can bring innumerous examples.

    Helen

      Please do, then - although I ask that you stick to demonstrating examples where context and sigils reduce the possibility of error, as that is what I was questioning.

      for(split(" ","tsuJ rehtonA lreP rekcaH")){print reverse . " "}print "\b.\n";

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2024-04-25 05:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found