Re: Secret operators: the documentation

2012-04-03 Thread Philippe Bruhat (BooK)
On Mon, Apr 02, 2012 at 06:28:56PM +0200, Alexis Sukrieh wrote: Le 16 mars 2012 12:44, Philippe Bruhat (BooK) philippe.bru...@free.fr a écrit : So, A few years back, I started to write a manual page about Perl secret operators, with the goal of getting it into the official Perl

Re: Secret operators: the documentation

2012-04-03 Thread Philippe Bruhat (BooK)
. Anyway, I guess others can decide what gets in when the branch merged into blead. -- Philippe Bruhat (BooK) Out of the worst can often come the best. (Moral from Groo The Wanderer #57 (Epic))

Re: The sperm secret operator: is it new?

2012-03-16 Thread Philippe Bruhat (BooK)
probably have been invented independently, as goatse was a popular meme at some point, and people collected references to it. It's not suprising that a minimalist ascii-art version appeared. And that it looked like Perl code. -- Philippe Bruhat (BooK) The man who most obeys the king is the man

Secret operators: the documentation

2012-03-16 Thread Philippe Bruhat (BooK)
://github.com/book/perlsecret I've already included most of the feedback from the discussions on ~~. Patches welcome. When it's stabilized enough, I'll send a patch to p5p. -- Philippe Bruhat (BooK) Too many believe only in the belief. (Moral from Groo

Re: The sperm secret operator: is it new?

2012-03-15 Thread Philippe Bruhat (BooK)
I have a dirty mind? -- Philippe Bruhat (BooK) Law is the best deterrent to Justice. (Moral from Groo The Wanderer #90 (Epic))

Re: The sperm secret operator: is it new?

2012-03-15 Thread Philippe Bruhat (BooK)
://en.wikipedia.org/wiki/Sperm. The side view is four-squared enough for me. The limitations of ASCII shouldn't limit our imaginations! -- Philippe Bruhat (BooK) Too many believe only in the belief. (Moral from Groo The Wanderer #58 (Epic))

The sperm secret operator: is it new?

2012-03-14 Thread Philippe Bruhat (BooK)
no idea if this operator is really new, or if someone else found and named it already before today. My Google-fu is too weak to make useful searches on it. -- Philippe Bruhat (BooK) No matter who you may be, there is always someone who is a little worse because he thinks he is a little better

Re: The sperm secret operator: is it new?

2012-03-14 Thread Philippe Bruhat (BooK)
On Wed, Mar 14, 2012 at 12:36:10PM +0100, Philippe Bruhat (BooK) wrote: Hi, While doing some tests/research on secret operators, I stumbled upon this one in my one-liners: ~~ Obviously, this should be named the sperm operator. It's only useful in list context. Just like sperm cells

Re: The sperm secret operator: is it new?

2012-03-14 Thread Philippe Bruhat (BooK)
of the inchworm on a stick should work on all integers in Perl. Complement two arithmetics demand it! Now, the question is, how long has this been broken in Perl? Forever? -- Philippe Bruhat (BooK) The learned man makes a mistake but once... but the truly stupid keep practicing until they get

Re: Rate my JAPH

2011-11-14 Thread Philippe Bruhat (BooK)
coding, but I'm not paid for it. ;-) -- Philippe Bruhat (BooK) Solve a problem before you become part of it. (Moral from Groo The Wanderer #60 (Epic))

Re: Rate my JAPH

2011-11-11 Thread Philippe Bruhat (BooK)
asbtract things like creativity, beauty, or give bonus points for not using sigils, or eval, or malus points for using modules. Oh well, it can't be more difficult than rating art. Only maybe just as difficult. ;-) -- Philippe Bruhat (BooK) Did I err? (Groo, in too many issues to count

Re: Just to say hello

2011-11-09 Thread Philippe Bruhat (BooK)
if you want to read some code. Better write it! -- Philippe Bruhat (BooK) Where there are hearts of gold, there is no need for bars of steel. (Moral from Groo The Wanderer #103 (Epic))

Re: Another one-liner?

2009-06-24 Thread Philippe Bruhat (BooK)
=! $y --$x = '' if $y; I hope you'll welcome it in your toolbox, like Jasper did. -- Philippe Bruhat (BooK) The fish most likely to be caught is the one with the biggest mouth. (Moral from Groo The Wanderer #17 (Epic))

Re: YN golf

2008-04-01 Thread Philippe Bruhat (BooK)
On Mon, Mar 31, 2008 at 11:37:05PM -0500, Chris Dolan wrote: On Mar 31, 2008, at 6:54 PM, Philippe Bruhat (BooK) wrote: On Mon, Mar 31, 2008 at 04:34:58PM -0700, Rick Klement wrote: perl -le 'print for glob{Y,N}x5' Of course you have to run this in a directory that doesn't contain any file

Re: YN golf

2008-03-31 Thread Philippe Bruhat (BooK)
On Mon, Mar 31, 2008 at 04:34:58PM -0700, Rick Klement wrote: perl -le 'print for glob{Y,N}x5' Of course you have to run this in a directory that doesn't contain any file matching /^[YN]{5}$/. -- Philippe Bruhat (BooK) The learned man makes a mistake but once... but the truly stupid

Name the secret operator

2008-03-19 Thread Philippe Bruhat (BooK)
that must be on three lines (not counting the content). m=~m (commented out code and pod goes here) m ; I have a few ideas for names, but they don't fit very well, and do not describe the m\n; part of the operator. -- Philippe Bruhat (BooK) Putting beauty before brains is the surest way

Re: The flaming X-wing secret operator

2007-11-30 Thread Philippe Bruhat (BooK)
On Fri, Nov 30, 2007 at 09:43:36AM +0100, Philippe Bruhat (BooK) wrote: Me likes. Lots. I propose, as alternative names for those two tokens, the fat bat (because it does look like a particularly rotund specimen of that species, and in honor of the large value it yields

Re: The flaming X-wing secret operator

2007-11-30 Thread Philippe Bruhat (BooK)
kidding, the rest of the line doesn't apply). :-) Of course, we now need canonical usage examples of those two. -- Philippe Bruhat (BooK) Blood is thicker than water... so beware of thick relatives. (Moral from Groo The Wanderer #18 (Epic))

Re: The flaming X-wing secret operator

2007-11-29 Thread Philippe Bruhat (BooK)
On Thu, Nov 29, 2007 at 09:54:25AM +0100, Philippe Bruhat (BooK) wrote: # DATA is the pilot, for the sake of the example @[EMAIL PROTECTED] =DATA=~ $re; Did I just inadvertently make a Star Wars/Star Trek cross-over? -- Philippe Bruhat (BooK) He who revels in being

Re: The flaming X-wing secret operator

2007-11-29 Thread Philippe Bruhat (BooK)
On Wed, Nov 28, 2007 at 05:09:57PM -0500, Mr. Shawn H. Corey wrote: Philippe Bruhat (BooK) wrote: Hi, Just thought I should share this with the FWP crowd. I had to do something special with the first line of a file, before running the whole while() loop on it. I ended up

Re: The flaming X-wing secret operator

2007-11-29 Thread Philippe Bruhat (BooK)
the fan fic way, and imagine the Empire is about to win, now that the Red Squadron is severily hit: =Biggs_Darklighter=~ =Jek_Porkins=~ =Wedge_Antilles=~ =Luke_Skywalker=~ -- Philippe Bruhat (BooK) In war, the only winners are those who sell the weapons

Re: The flaming X-wing secret operator

2007-11-29 Thread Philippe Bruhat (BooK)
On Thu, Nov 29, 2007 at 09:20:20AM -0500, Mr. Shawn H. Corey wrote: Philippe Bruhat (BooK) wrote: Why would I need parentheses, when the hash slice gives me a list context already? The parentheses, like the whitespace, are for clarification; to make it easier to understand what is happening

The flaming X-wing secret operator

2007-11-28 Thread Philippe Bruhat (BooK)
Bruhat (BooK) No matter how many times you explain the big problem, some people see only their small problem. (Moral to the Sage story, in Groo The Wanderer #93 (Epic))