Stuff with the Perl Foundation. A couple of patches in the Perl core. A few CPAN modules. That about sums it up.
Tracked down a weird bug in our code. This could make for interesting obfuscations.
$ perl -MO=Deparse -e 'f("x");sub f {expand { datatype => shift }}'
f('x');
sub f {
do {
'datatype', shift @_
}->expand;
}
-e syntax OK
WTF Is expand? (Score:2)
--Theory
Re: (Score:2)
The weird code just through you off there. It's a key in a hash. If there was a fat comma (=>) to the right of "expand", that code would look and behave just fine.
Re: (Score:2)
Ah, I see. Except that it's not a key in a hash in that code, but a method.
--Theory
Re: (Score:2)
A: I should have written "threw", not "through". I hate it when I do that. B: I know it's a method. That was the point of the original post :)
Indirect object syntax (Score:1)
my $dog = new Dog;does. More not-much-used-syntax we should get rid of?
(Hmm, print uses it, took me a while to figure which doc it's in, perlobj)
Aren't typos fun?