|
My brother in law works in Perl and he thinks it's the dog's bollocks, but I wouldn't want to work in Perl any more than I'd want to work in PHP. Being fair though I expect it's better than PHP though (wouldn't be difficult). Brother in law comes out with stuff like "Perl 6 is the only language with true unicode support" (I'm definitely failing to quote him verbatim here, but he has a habit of coming out with provocative statements that invite disagreement). Why should anyone fancy doing a project in Perl, OP, and not some other scripting language like Python or Ruby? Isn't it a bit of a dead end if you want to learn languages you can use to get a job?
|
# ¿ Jan 1, 2020 02:12 |
|
|
# ¿ May 13, 2024 19:15 |
|
qntm posted:
explain this. I want to know how this programming language can be so bad.
|
# ¿ Jan 4, 2020 15:31 |
|
qntm posted:Perl has a unique feature known as context-sensitivity. Every Perl expression is evaluated in one of two contexts, list context or scalar context. This sounds extremely bad and needlessly confusing, and likely to be a huge source of bugs. It seems to me that it would be much better to have the user explicitly indicate what sort of behaviour they want than try to be clever and let them change the program's behaviour subtly through context. Can someone explain why I'm wrong?
|
# ¿ Jan 4, 2020 20:57 |
|
I think you'll find it should be my $count ≗()= $str =~ /myregex/g
|
# ¿ Jan 10, 2020 14:35 |