Re: The "flaming X-wing" secret operator
"Mr. Shawn H. Corey" <[email protected]> Wed, 28 Nov 2007 17:09:57 -0500
| Newsgroups | gmane.comp.lang.perl.fun |
|---|---|
| Message-ID | <[email protected]> |
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:
>
> @data{@fields} =<>=~ $re;
>
> Rafael helped me give this new operator a name (#perlfr transcript):
>
> 15:13 <@BooK> OMG c'est quoi =<>=~ comme secret op ?
> 15:14 <@rgs> le x-wing touché avec une aile en feu
>
> Rough translation:
>
> 15:13 <@BooK> OMG what is =<>=~ for a secret op ?
> 15:14 <@rgs> the hit x-wing starfighter with a wing on fire
>
> Cog, are you still writing this OGSOP book? ;-)
>
Actually, it's:
@data{@fields} = ( <> =~ $re );
--
Just my 0.00000002 million dollars worth,
Shawn
+------------\
| Shangri La \
| 40,000 km /
+------------/