Re: seeking golfing advice
On Wed, May 16, 2012 12:25 pm, damien krotkine wrote: > On 16 May 2012 14:02, Peter Makholm wrote: > [ ... ] > >> So basically you are trading 8 characters for readability and probably >> speed. Why do you want that? > > For fun, purely. I'll stick with $f % 2 for now, it seems a right > balance compared to the code lying around. If, as it sounds, you want to balance golfiness and strictness, you could also say: @array[grep $_%2, keys @array] (or @array[grep $_%2^1, keys @array] if you set $[ to 1 - but you didn't do that, right? :-) )
Re: Secret operators: the documentation
On Mon, April 2, 2012 4:28 pm, Alexis Sukrieh wrote: > Le 16 mars 2012 12:44, Philippe Bruhat (BooK) > a écrit : >> So, >> >> A few years back, I started to write a manual page about Perl secret >> operators, > [...] > I have a question though; > > Did you change your mind about the "A word of warning" section? It > sounds that it won't fit well in the official Perl documentation ;) Version I saw last week-end includes: === You're welcome to try these at home, but they might not be safe for work! === Is that what you were thinking of?