NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
Your cow orker is right (Score:1)
Obligatory CPAN: looks like that subroutine can be replaced with Tie::CPHash.
I would disagree (Score:1)
The point is not that "Perl cannot do it", at least to me. The point is that if you want to pick a reason why "Perl sucks"(tm), there are far better reasons to exclaim that than the fact that it chose to have explicit parenthesis on
ifconditions.This is the same tone of things as "Perl sucks because if I have only one statement for an
ifblock, I have to still put code blocks, and then I have a line with just one curly bracket!!!"[1] Excuse the exclamation marks (trying to make it seem realistic, did it work?), but I have really heard people say that...Actually, the same co-worker also complained that Perl has
lcinstead oflowercase. The common thing about all these complaints, at least to me, is that they are nitpicking at something which wasn't (and still isn't) a mistake. It's the intent of the language. Perl can do that, it just decided not to, for the same reason Larry keeps explaining why he wants a code block even for a singleif. It's not that Perl can't changelctolowercaseorto_lowercase_letter_instead_of_the_first_parameter_of_this_function_here. It's because Perl (and perhaps I should say Larry) decided not to.I don't know if I explained myself well, sometimes I don't seem to.
[1]
Reply to This
Parent