Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: You've just spilled something on your tie at lunch... Do you:

by TedYoung (Deacon)
on Sep 22, 2007 at 02:04 UTC ( #640470=note: print w/replies, xml ) Need Help??


in reply to You've just spilled something on your tie at lunch... Do you:

Personally, I love ties. When used correctly ties can bring a certain elegance to your code, using concise hash and array access constructs instead of verbose method calls. I know, some people have "stained" their reputation with performance concerns, but sometimes it is just worth it!

Update: Oh, sh!t. Sorry!

Ted Young

($$<<$$=>$$<=>$$<=$$>>$$) always returns 1. :-)

(update) ... in a scalar context, of course ;-)

Replies are listed 'Best First'.
Re^2: You've just spilled something on your tie at lunch... Do you:
by shmem (Chancellor) on Sep 22, 2007 at 21:47 UTC
    Hmm.. Your sig:
    ($$<<$$=>$$<=>$$<=$$>>$$) always returns 1. :-)
    Seems like you're right
    perl -le 'print +($$<<$$=>$$<=>$$<=$$>>$$)' 26088570881

    for very large values of 1 :-P

    --shmem

    _($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                                  /\_¯/(q    /
    ----------------------------  \__(m.====·.(_("always off the crowd"))."·
    ");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}
      It always returns 1, and sometimes returns other numbers too, depending on how you invoke it.
        I saw the fat comma in that expression, but dinn' think much further...
        perl -le '%h = ($$<<$$=>$$<=>$$<=$$>>$$); print $h{$_} for keys %h' 1

        Thank you.

        --shmem

        _($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                                      /\_¯/(q    /
        ----------------------------  \__(m.====·.(_("always off the crowd"))."·
        ");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}

      He didn't say it only returned a *single* 1, did he? ;-)
      It returns a whole lot of 1's, bundled together for your convenience.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://640470]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (9)
As of 2019-10-14 12:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?