Re: Secret operators

2005-02-01 Thread Philippe 'BooK' Bruhat
Le mardi 01 février 2005 à 11:49, José Castro écrivait: Hi, guys. Apart from the secret eskimo greeting and the goatse operator, can anyone tell me about other secret operators? Examples: eskimo: }{ goatse: =()= eskimo usage: perl -ne '}{print $.' goatse usage: perl -e

Re: Secret operators

2005-02-01 Thread Vladi Belperchinov-Shabanski
On Tue, 1 Feb 2005 11:49:57 + Jos_ Castro [EMAIL PROTECTED] wrote: Hi, guys. Apart from the secret eskimo greeting and the goatse operator, can anyone tell me about other secret operators? Examples: eskimo: }{ goatse: =()= eskimo usage: perl -ne '}{print $.' perl

Re: Secret operators

2005-02-01 Thread Philippe 'BooK' Bruhat
Le mardi 01 février 2005 à 18:57, Vladi Belperchinov-Shabanski écrivait: On Tue, 1 Feb 2005 15:57:33 +0100 [EMAIL PROTECTED] (Philippe 'BooK' Bruhat) wrote: There's also @{[]} but I don't know f it has a name. Usage: print splatt @{[ ... ]} pow where ... is any valid expression,

Re: Secret operators

2005-02-01 Thread Andy_Bach
Can I get that just a little slower? $b = () = /u/g; is the same as: @a = /u/g; $b = @a; I understand what happens, but it appears to be assigning to an empty list - is that filling up the list, so to speak? Or is it just that it makes the 'result' of /u/g assign in array/list

Re: Secret operators

2005-02-01 Thread Georg Moritz
From the keyboard of [EMAIL PROTECTED] [01.02.05,11:15]: Can I get that just a little slower? $b = () = /u/g; is the same as: @a = /u/g; $b = @a; it's not the same. perl -le '$_=foo; print $b =()= /o/g' 2 perl -le '$_=foo; print @b =()= /o/g' perl -le '$_=foo; print /o/g' oo

Re: Secret operators

2005-02-01 Thread José Castro
* Ronald J Kimball ([EMAIL PROTECTED]) wrote: You can assign two elements to a one-element list: ($foo) = (1, 2); You can even assign two elements to an empty list: () = (1, 2); In each case, any extra elements are simply discarded, but the result of the assignment in scalar

Re: Secret operators

2005-02-01 Thread Jeff Yoak
On Tue, 2005-02-01 at 03:49, Jos Castro wrote: Hi, guys. Apart from the secret eskimo greeting and the goatse operator, can anyone tell me about other secret operators? Examples: eskimo: }{ goatse: =()= eskimo usage: perl -ne '}{print $.' This is wonderfully deranged. I

Re: Secret operators

2005-02-01 Thread José Castro
* Jeff Yoak ([EMAIL PROTECTED]) wrote: eskimo usage: perl -ne '}{print $.' This is wonderfully deranged. I haven't seen it before, but it was immediately clear what it does. goatse usage: perl -e '$_=zbrughau;$b=()=/u/g;print $b' This is probably even more wonderfully deranged as

Re: Secret operators

2005-02-01 Thread Quantum Mechanic
--- José Castro [EMAIL PROTECTED] wrote: * Quantum Mechanic ([EMAIL PROTECTED]) wrote: $foo = ($bar) = (9,8,7); RHS list ($bar) array $bar - 7 (rest discarded) No, no, no. $bar - 9 Yes, that was a typo -- thanks. It's the same as $foo = ($bar,

Re: Secret operators

2005-02-01 Thread Andrew Savige
José Castro wrote: Apart from the secret eskimo greeting and the goatse operator, can anyone tell me about other secret operators? Let's not forget the Ton Hospel high-precedence decrement operator ~- invented during a golf tournament (anyone remember which one?). IIRC, Ton's ~- invention

Re: Secret operators

2005-02-01 Thread Andrew Savige
Philippe 'BooK' Bruhat wrote: So we have : symbolnicknameRole -- = spaceship documented operator 0+venus numification }{eskimo greeting END{} in