Re: The flaming X-wing secret operator

2007-11-29 Thread José Alves de Castro
On Nov 28, 2007, at 4:16 PM, 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 with this: @[EMAIL PROTECTED] ==~ $re; Rafael helped

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 with this:

Re: The flaming X-wing secret operator

2007-11-29 Thread Dmitry Karasik
Philippe @[EMAIL PROTECTED] ==~ $re; That gives me a reason to pick symmetrical names for my filehandles in the future: =W=~ =O__O=~ =IX000H000XI=~ that'll be an X-wing squadron :) -- Sincerely, Dmitry Karasik

Re: The flaming X-wing secret operator

2007-11-29 Thread Philippe Bruhat (BooK)
On Thu, Nov 29, 2007 at 01:09:20PM +0100, Dmitry Karasik wrote: Philippe @[EMAIL PROTECTED] ==~ $re; That gives me a reason to pick symmetrical names for my filehandles in the future: =W=~ =O__O=~ =IX000H000XI=~ that'll be an X-wing squadron :) Or you could go down the

Re: The flaming X-wing secret operator

2007-11-29 Thread Mr. Shawn H. Corey
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. Also, it is not one operator, it is three. Why do you use so much

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

Re: The flaming X-wing secret operator

2007-11-29 Thread yanick
On Thu, Nov 29, 2007 at 10:00:19AM +0100, Philippe Bruhat (BooK) wrote: On Wed, Nov 28, 2007 at 07:22:54PM -0500, Yanick Champoux wrote: Somehow, I think Philippe knew that. ;-) Even better, I knew I didn't need them. I knew you knew. :-) I was more saying Philippe knows that

Re: The flaming X-wing secret operator

2007-11-29 Thread shmem
From the keyboard of [EMAIL PROTECTED] [29.11.07,11:11]: On Thu, Nov 29, 2007 at 10:00:19AM +0100, Philippe Bruhat (BooK) wrote: On Wed, Nov 28, 2007 at 07:22:54PM -0500, Yanick Champoux wrote: Somehow, I think Philippe knew that. ;-) Even better, I knew I didn't need them.

Re: The flaming X-wing secret operator (moon 2)

2007-11-29 Thread Georg Moritz
From the keyboard of [EMAIL PROTECTED] [29.11.07,11:11]: On Thu, Nov 29, 2007 at 10:00:19AM +0100, Philippe Bruhat (BooK) wrote: On Wed, Nov 28, 2007 at 07:22:54PM -0500, Yanick Champoux wrote: Somehow, I think Philippe knew that. ;-) Even better, I knew I didn't need them.

Re: hashes over easy

2007-11-29 Thread Doug Hunt
Hi Uri: I enjoyed reading through your slides. I think I caught a typo, though: On the 'Is A' slide, the example is: my @foos = qw( foo bar baz ) ; my %is_a_foo = map { $_ = 1 } @foos ; if( $is_a_foo( $key ) { ... } Shouldn't this be: if( $is_a_foo{$key} ) { ... } Regards, Doug

Re: hashes over easy

2007-11-29 Thread Uri Guttman
DH == Doug Hunt [EMAIL PROTECTED] writes: DH Hi Uri: I enjoyed reading through your slides. DH I think I caught a typo, though: i said there will be errors!! :) most of my lesson slides for this ongoing class have had typos. DH if( $is_a_foo( $key ) { DH if( $is_a_foo{$key} ) {

Re: The flaming X-wing secret operator

2007-11-29 Thread Yanick Champoux
shmem wrote: To brighten up your day - here's the winged moon, which isn't an operator, but a constant: [EMAIL PROTECTED] Georg added: Similar to the winged moon - an operator (token?) which scares the hell out of the remainder of a list: [EMAIL PROTECTED] Me likes. Lots. I

Re: The flaming X-wing secret operator

2007-11-29 Thread shmem
From the keyboard of Yanick Champoux [29.11.07,20:01]: shmem wrote: To brighten up your day - here's the winged moon, which isn't an operator, but a constant: [EMAIL PROTECTED] Georg added: Similar to the winged moon - an operator (token?) which scares the hell out of the