Stuff with the Perl Foundation. A couple of patches in the Perl core. A few CPAN modules. That about sums it up.
If I write for my $file in (@files) {
IT'S STUCK IN MY FINGERS. MY FINGERS ARE SCREAMING!
Do you have any "non-perlisms" that you can't help but type?
iterators? (Score:1)
Somehow, and surprisingly, none of the iterator type modules I saw in a quick CPAN seach do the trick with less finger pain. But there's always the option of $_ if you don't need the lexical:
For small scopes, I find I often revert to single letters.
--dagolden
Re: (Score:2)
Re: (Score:1)
Yeah. :-(
I "got it" after I posted my reply and didn't even see it in my copy/paste.
-- dagolden
Sigils... (Score:1)
After doing some java coding, I often get compilation errors in perl because I forget the $ in front of a variable :).
Nothing that a few wtf's can fix...
Culture shock (Score:2)
:-)
Re: (Score:2)
Ovid's foo should be private, thank you.
Re: (Score:2)
foo()for anovid.Re: (Score:1)
What does it return in
ovidcontext?Re: (Score:2)
What does it return in
ovidcontext?It always returns
ovidin anovidcontext. In a strongly typed language, the compiler will never allow you to call it from a non-ovidcontext. I suppose you could overloadfoo()to return avirgil,horace, or evenhomerin other contexts, but I've never needed to do that.Re: (Score:1)
If any dead Greek poet were polymorphic, I would have thought
ovid!Re: (Score:2)
He was considered a Roman poet, actually. Had Roman citizenship until he died, though he was never permitted to return to Rome after he was relegated (a form of exile).
ok, but how to fix this? (Score:1)
benh~
Me too... (Score:1)
I have started adding the "in" also.
I also wrote this once:
my @list = for $i in @source when $i > 42 collect "OH, $i";
It turns out that Perl can't parse that :)