I love Perl

Discussion in 'OT Technology' started by Peyomp, Feb 23, 2007.

  1. Peyomp

    Peyomp New Member

    Joined:
    Jan 11, 2002
    Messages:
    14,017
    Likes Received:
    0
    You had me at #!


    You had me at print "Hello, World!";
     
  2. kingtoad

    kingtoad OT Supporter

    Joined:
    Sep 2, 2003
    Messages:
    55,924
    Likes Received:
    11
    Location:
    Los Angeles
  3. Peyomp

    Peyomp New Member

    Joined:
    Jan 11, 2002
    Messages:
    14,017
    Likes Received:
    0
    You had me at $k
     
  4. sonicsuby

    sonicsuby New Member

    Joined:
    Mar 15, 2000
    Messages:
    21,338
    Likes Received:
    0
    Location:
    CA
    $thisthread{$gay} = 1;

    while ($thisthread{$gay})
    {
    exit 1;
    }
     
  5. Peyomp

    Peyomp New Member

    Joined:
    Jan 11, 2002
    Messages:
    14,017
    Likes Received:
    0
    #!/usr/bin/perl
    if($sonicsuby{orientation} eq "homosexual && $sonicsuby{description} eq "lame")
    {
    print "||||||||||||||||)------*\n";
    }

    ---------------------

    my-computer> ./sonicsuby.pl

    ||||||||||||||||)------*

    my-computer> killall self
     
  6. sonicsuby

    sonicsuby New Member

    Joined:
    Mar 15, 2000
    Messages:
    21,338
    Likes Received:
    0
    Location:
    CA
    #!/usr/bin/perl

    while ($Peyomp eq "alive")
    {
    `kill $Peyomp`;
    }
     
  7. Peyomp

    Peyomp New Member

    Joined:
    Jan 11, 2002
    Messages:
    14,017
    Likes Received:
    0
    BUG! YOUR CODE HAS A BUG! MUHAHAHAHA!

    Perl had me at the bug.
     
  8. Coottie

    Coottie BOOMER......SOONER OT Supporter

    Joined:
    Jun 6, 2006
    Messages:
    32,407
    Likes Received:
    0
    Location:
    OKC
    lol so does yours:

    if($sonicsuby{orientation} eq "homosexual" <---- No closing quote

    yay me! or am I an idiot? :)
     
  9. Peyomp

    Peyomp New Member

    Joined:
    Jan 11, 2002
    Messages:
    14,017
    Likes Received:
    0
    Yeah but... mine is a typo. His is a logical error.
     
  10. sonicsuby

    sonicsuby New Member

    Joined:
    Mar 15, 2000
    Messages:
    21,338
    Likes Received:
    0
    Location:
    CA
    It was more about the message than the code :p
     
  11. Coottie

    Coottie BOOMER......SOONER OT Supporter

    Joined:
    Jun 6, 2006
    Messages:
    32,407
    Likes Received:
    0
    Location:
    OKC
    perhaps it was pseudoperl
     

Share This Page