Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

perl operator

by cleen (Pilgrim)
on Feb 27, 2001 at 22:41 UTC ( #61130=perlmeditation: print w/ replies, xml ) Need Help??

If you were a perl operator, what perl operator would you be? I'd be bind =~ !!!!!!!!!!!!!!!!!!!!!!

Comment on perl operator
Re: perl operator
by TheoPetersen (Priest) on Feb 27, 2001 at 23:37 UTC
    Definitely <=> :)

    This and The Marcel Perl Questionnaire remind me of a self-description technique I've heard referred to as a "Chinese self-portrait," with no idea what is particularly Chinese about it. The technique is to answer a series of comparisons like:

    • If I were a color, I'd be...
    • If I were a metal, I'd be...
    • If I were an activity, I'd be...
    And so on. So if you know what sort of operator you'd be, then what statement or modifier? What module, or regexp? The answers don't have to be the same as the Questionaire -- you might not be the operator you like most :)
      But beware if someone at a party asks you to say what your favorite body of water is and then to describe your feelings about it...

      *grin*

      ah yes, but as bind I can match any color, I can match any metal, but I dont think I could do anything with activity. I would have to be a loop terminator like next or last =)
(redmist) Re: perl operator
by redmist (Deacon) on Feb 28, 2001 at 00:45 UTC

    If you could have happiness in any shape, what shape would you choose?

    I would definitely choose my happiness to be in the shape of a spear... that way I could impale myself on happiness.

    redmist
    Silicon Cowboy
Re: perl operator
by royalanjr (Chaplain) on Feb 28, 2001 at 01:05 UTC
    From these answers I would have to say that we may need some of those nice white jackets that tie in the back....

    LOL

    I honestly do not know what operator I would want to be though.


    Roy Alan

Re: perl operator
by AgentM (Curate) on Feb 28, 2001 at 01:15 UTC
Re: perl operator
by chipmunk (Parson) on Feb 28, 2001 at 02:44 UTC
    I think I would be the &&= operator. :)
Re: perl operator
by elusion (Curate) on Feb 28, 2001 at 05:48 UTC
    I would most definitely be the most unique of the perl operators. The only trinary operator: ?:

    Oh, to be unique.

    - p u n k k i d
    "Reality is merely an illusion, albeit a very persistent one." -Albert Einstein

      ... but, of course (this would be my Ob/comp coming out); you can be unique, you can be rare, you can be common but you can't be the "most unique". If there's only one, then there's ... well, only one. ;->

      I've always liked =~ (so much adventure) but .= has both the best look (dadaist wink) and value. For me, of course, this is the dog talking.

      a
      The crux of the biscuit is the apostrophe

Re: perl operator
by dws (Chancellor) on Feb 28, 2001 at 07:36 UTC
    bless

    "Have you been a good little scalar this year? No?"

    *poof*

    You are now a Newt

Re: perl operator
by unixwzrd (Beadle) on Feb 28, 2001 at 08:41 UTC
    Be positive...

    ++

    Mike - mps@discomsys.com

    "The two most common elements in the universe are hydrogen... and stupidity."
    Harlan Ellison

Re: perl operator
by LD2 (Curate) on Feb 28, 2001 at 08:46 UTC
    ||.... due to indecisiveness (worst habit)..
(crazyinsomniac) Re: perl operator
by crazyinsomniac (Prior) on Feb 28, 2001 at 08:56 UTC
    Now let's see, what perl operator would I like to be?
    Quite frankly it's fine with me, if it's any of these three:
    q qq qw

     
    ___crazyinsomniac_______________________________________
    Disclaimer: Don't blame. It came from inside the void
    perl -e "$q=$_;map({chr unpack qq;H*;,$_}split(q;;,q*H*));print;$q/$q;"

Re: perl operator
by magnus (Pilgrim) on Feb 28, 2001 at 17:14 UTC
    a has got the right of it: .= would have to be it...

    when everything is One once again, it will finally all be nothing once again...

    magnus
Re: perl operator
by and (Pilgrim) on Feb 28, 2001 at 23:13 UTC
    Some days it is undef. No deciding "is this true?" or "is this false?". Just make everything false. Always!

    Other days it is rand:

    "Why did you return that?"
    "I don't know and I don't care!"

    Update: rand dropped by my cube and showed me his job description. He is supposed to be really random and completely predictable at the same time. Man, that sucks. :(

Re: perl operator
by extremely (Priest) on Mar 01, 2001 at 00:32 UTC
    Maybe I'm just uppity today but I'd want != since I feel that there is no equal to me =)

    --
    $you = new YOU;
    honk() if $you->love(perl)

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (11)
As of 2014-09-17 11:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (72 votes), past polls