Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. The Weird and The Wonderful
  4. Perl is crazy!

Perl is crazy!

Scheduled Pinned Locked Moved The Weird and The Wonderful
questionperlcomadobejson
26 Posts 17 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    Brisingr Aerowing
    wrote on last edited by
    #1

    (Taken from Reddit[^])

    not exp log srand xor s qq qx xor
    s x x length uc ord and print chr
    ord for qw q join use sub tied qx
    xor eval xor print qq q q xor int
    eval lc q m cos and print chr ord
    for qw y abs ne open tied hex exp
    ref y m xor scalar srand print qq
    q q xor int eval lc qq y sqrt cos
    and print chr ord for qw x printf
    each return local x y or print qq
    s s and eval q s undef or oct xor
    time xor ref print chr int ord lc
    foreach qw y hex alarm chdir kill
    exec return y s gt sin sort split

    Quote:

    It's just pointless obfuscation, but its kinda neat. That code prints out "Just another Perl hacker" using only keywords in perl. The trick to it is that the "q" keyword works as a quote, and the rest of the code is just operating on the keywords that are now just strings inside the q tags.

    :eek:

    What do you get when you cross a joke with a rhetorical question? The metaphorical solid rear-end expulsions have impacted the metaphorical motorized bladed rotating air movement mechanism. Do questions with multiple question marks annoy you???

    S R P Z D 11 Replies Last reply
    0
    • B Brisingr Aerowing

      (Taken from Reddit[^])

      not exp log srand xor s qq qx xor
      s x x length uc ord and print chr
      ord for qw q join use sub tied qx
      xor eval xor print qq q q xor int
      eval lc q m cos and print chr ord
      for qw y abs ne open tied hex exp
      ref y m xor scalar srand print qq
      q q xor int eval lc qq y sqrt cos
      and print chr ord for qw x printf
      each return local x y or print qq
      s s and eval q s undef or oct xor
      time xor ref print chr int ord lc
      foreach qw y hex alarm chdir kill
      exec return y s gt sin sort split

      Quote:

      It's just pointless obfuscation, but its kinda neat. That code prints out "Just another Perl hacker" using only keywords in perl. The trick to it is that the "q" keyword works as a quote, and the rest of the code is just operating on the keywords that are now just strings inside the q tags.

      :eek:

      What do you get when you cross a joke with a rhetorical question? The metaphorical solid rear-end expulsions have impacted the metaphorical motorized bladed rotating air movement mechanism. Do questions with multiple question marks annoy you???

      S Offline
      S Offline
      Super Lloyd
      wrote on last edited by
      #2

      So the real question here, which is the most mystifying language? Perl? or [Brainfuck](https://en.wikipedia.org/wiki/Brainfuck)?! :o

      A new .NET Serializer All in one Menu-Ribbon Bar Taking over the world since 1371!

      R Richard DeemingR D M 4 Replies Last reply
      0
      • B Brisingr Aerowing

        (Taken from Reddit[^])

        not exp log srand xor s qq qx xor
        s x x length uc ord and print chr
        ord for qw q join use sub tied qx
        xor eval xor print qq q q xor int
        eval lc q m cos and print chr ord
        for qw y abs ne open tied hex exp
        ref y m xor scalar srand print qq
        q q xor int eval lc qq y sqrt cos
        and print chr ord for qw x printf
        each return local x y or print qq
        s s and eval q s undef or oct xor
        time xor ref print chr int ord lc
        foreach qw y hex alarm chdir kill
        exec return y s gt sin sort split

        Quote:

        It's just pointless obfuscation, but its kinda neat. That code prints out "Just another Perl hacker" using only keywords in perl. The trick to it is that the "q" keyword works as a quote, and the rest of the code is just operating on the keywords that are now just strings inside the q tags.

        :eek:

        What do you get when you cross a joke with a rhetorical question? The metaphorical solid rear-end expulsions have impacted the metaphorical motorized bladed rotating air movement mechanism. Do questions with multiple question marks annoy you???

        R Offline
        R Offline
        RickZeeland
        wrote on last edited by
        #3

        Long ago I tried to install Perl, my god what a mess! removed it the same day from my PC :doh:

        T 1 Reply Last reply
        0
        • S Super Lloyd

          So the real question here, which is the most mystifying language? Perl? or [Brainfuck](https://en.wikipedia.org/wiki/Brainfuck)?! :o

          A new .NET Serializer All in one Menu-Ribbon Bar Taking over the world since 1371!

          R Offline
          R Offline
          RugbyLeague
          wrote on last edited by
          #4

          Malbolge

          S 1 Reply Last reply
          0
          • R RugbyLeague

            Malbolge

            S Offline
            S Offline
            Super Lloyd
            wrote on last edited by
            #5

            :laugh: :thumbsup:

            A new .NET Serializer All in one Menu-Ribbon Bar Taking over the world since 1371!

            1 Reply Last reply
            0
            • B Brisingr Aerowing

              (Taken from Reddit[^])

              not exp log srand xor s qq qx xor
              s x x length uc ord and print chr
              ord for qw q join use sub tied qx
              xor eval xor print qq q q xor int
              eval lc q m cos and print chr ord
              for qw y abs ne open tied hex exp
              ref y m xor scalar srand print qq
              q q xor int eval lc qq y sqrt cos
              and print chr ord for qw x printf
              each return local x y or print qq
              s s and eval q s undef or oct xor
              time xor ref print chr int ord lc
              foreach qw y hex alarm chdir kill
              exec return y s gt sin sort split

              Quote:

              It's just pointless obfuscation, but its kinda neat. That code prints out "Just another Perl hacker" using only keywords in perl. The trick to it is that the "q" keyword works as a quote, and the rest of the code is just operating on the keywords that are now just strings inside the q tags.

              :eek:

              What do you get when you cross a joke with a rhetorical question? The metaphorical solid rear-end expulsions have impacted the metaphorical motorized bladed rotating air movement mechanism. Do questions with multiple question marks annoy you???

              P Offline
              P Offline
              peterkmx
              wrote on last edited by
              #6

              I agree … this is rather horrifying, and knowing nothing about … ooops :-)...[EDIT]Pearl Perl [/EDIT], I dare to ask for evidence of this … :-). Where can I see the result ?

              Kornfeld Eliyahu PeterK 1 Reply Last reply
              0
              • P peterkmx

                I agree … this is rather horrifying, and knowing nothing about … ooops :-)...[EDIT]Pearl Perl [/EDIT], I dare to ask for evidence of this … :-). Where can I see the result ?

                Kornfeld Eliyahu PeterK Offline
                Kornfeld Eliyahu PeterK Offline
                Kornfeld Eliyahu Peter
                wrote on last edited by
                #7

                https://www.tutorialspoint.com/online_perl_ide.php[^]

                "The greatest enemy of knowledge is not ignorance, it is the illusion of knowledge". Stephen Hawking, 1942- 2018

                "It never ceases to amaze me that a spacecraft launched in 1977 can be fixed remotely from Earth." ― Brian Cox

                P 1 Reply Last reply
                0
                • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

                  https://www.tutorialspoint.com/online_perl_ide.php[^]

                  "The greatest enemy of knowledge is not ignorance, it is the illusion of knowledge". Stephen Hawking, 1942- 2018

                  P Offline
                  P Offline
                  peterkmx
                  wrote on last edited by
                  #8

                  Indeed, thanks ... I should think about this :-), I will try to collect the evidence of this abomination :-D , BR

                  1 Reply Last reply
                  0
                  • S Super Lloyd

                    So the real question here, which is the most mystifying language? Perl? or [Brainfuck](https://en.wikipedia.org/wiki/Brainfuck)?! :o

                    A new .NET Serializer All in one Menu-Ribbon Bar Taking over the world since 1371!

                    Richard DeemingR Offline
                    Richard DeemingR Offline
                    Richard Deeming
                    wrote on last edited by
                    #9

                    Don't forget Whitespace[^]. :)


                    "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

                    "These people looked deep within my soul and assigned me a number based on the order in which I joined" - Homer

                    S 1 Reply Last reply
                    0
                    • B Brisingr Aerowing

                      (Taken from Reddit[^])

                      not exp log srand xor s qq qx xor
                      s x x length uc ord and print chr
                      ord for qw q join use sub tied qx
                      xor eval xor print qq q q xor int
                      eval lc q m cos and print chr ord
                      for qw y abs ne open tied hex exp
                      ref y m xor scalar srand print qq
                      q q xor int eval lc qq y sqrt cos
                      and print chr ord for qw x printf
                      each return local x y or print qq
                      s s and eval q s undef or oct xor
                      time xor ref print chr int ord lc
                      foreach qw y hex alarm chdir kill
                      exec return y s gt sin sort split

                      Quote:

                      It's just pointless obfuscation, but its kinda neat. That code prints out "Just another Perl hacker" using only keywords in perl. The trick to it is that the "q" keyword works as a quote, and the rest of the code is just operating on the keywords that are now just strings inside the q tags.

                      :eek:

                      What do you get when you cross a joke with a rhetorical question? The metaphorical solid rear-end expulsions have impacted the metaphorical motorized bladed rotating air movement mechanism. Do questions with multiple question marks annoy you???

                      Z Offline
                      Z Offline
                      ZurdoDev
                      wrote on last edited by
                      #10

                      It reminds me of some crazy things you can do in JavaScript. obfuscation - What are JavaScript's builtin strings? - Stack Overflow[^] For example, paste the following JS into a jsfiddle and run it: alert([[]+1/!1][1^1][1>>1]+({}+[])[1<<1^11>>1]+( []+!!-[])[1<<1]+[/~/+{}][+!1][-~1<<1]+[([]+/-/[( !!1+[])[1>>1]+(!!1+[])[1<<1^1]+(!1+[])[1|1<<1]+( !!1+[])[1^1]])[1+(1^(11+1+1)<<1)],([]+/-/[(!!1+[ ])[1>>1]+(!!1+[])[1<<1^1]+(!1+[])[1|1<<1]+(!!1+[ ])[1^1]])[1^11<<1],([]+/-/[(!!1+[])[1>>1]+(!!1+[ ])[1<<1^1]+(!1+[])[1|1<<1]+(!!1+[])[1^1]])[1^(11 +1+1)<<1]][((([]+/-/[(!!1+[])[1>>1]+(!!1+[])[1<< 1^1]+(!1+[])[1|1<<1]+(!!1+[])[1^1]])[(1<<1<<1<<1 )+1<<1]==({}+[])[1^1])*1)+((([]+/-/[(!!1+[])[1>> 1]+(!!1+[])[1<<1^1]+(!1+[])[1|1<<1]+(!!1+[])[1^1 ]])[(1^11<<1)-1]==({}+[])[1^1])<<1)]+([,][~1]+[] )[1-~1]+[[]+{}][!1.1%1][11111.1%11.1*111e11|!1]+ (/1/+1/[1<1][1%1])[1^11]+[[],[]+{}][1][+1]+(/<Everyone is born right handed. Only the strongest overcome it. Fight for left-handed rights and hand equality.

                      S B 2 Replies Last reply
                      0
                      • Richard DeemingR Richard Deeming

                        Don't forget Whitespace[^]. :)


                        "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

                        S Offline
                        S Offline
                        Super Lloyd
                        wrote on last edited by
                        #11

                        ha! That's the one I was really thinking about, thanks! :-D Yea, whitespace is da beast! :laugh:

                        A new .NET Serializer All in one Menu-Ribbon Bar Taking over the world since 1371!

                        1 Reply Last reply
                        0
                        • Z ZurdoDev

                          It reminds me of some crazy things you can do in JavaScript. obfuscation - What are JavaScript's builtin strings? - Stack Overflow[^] For example, paste the following JS into a jsfiddle and run it: alert([[]+1/!1][1^1][1>>1]+({}+[])[1<<1^11>>1]+( []+!!-[])[1<<1]+[/~/+{}][+!1][-~1<<1]+[([]+/-/[( !!1+[])[1>>1]+(!!1+[])[1<<1^1]+(!1+[])[1|1<<1]+( !!1+[])[1^1]])[1+(1^(11+1+1)<<1)],([]+/-/[(!!1+[ ])[1>>1]+(!!1+[])[1<<1^1]+(!1+[])[1|1<<1]+(!!1+[ ])[1^1]])[1^11<<1],([]+/-/[(!!1+[])[1>>1]+(!!1+[ ])[1<<1^1]+(!1+[])[1|1<<1]+(!!1+[])[1^1]])[1^(11 +1+1)<<1]][((([]+/-/[(!!1+[])[1>>1]+(!!1+[])[1<< 1^1]+(!1+[])[1|1<<1]+(!!1+[])[1^1]])[(1<<1<<1<<1 )+1<<1]==({}+[])[1^1])*1)+((([]+/-/[(!!1+[])[1>> 1]+(!!1+[])[1<<1^1]+(!1+[])[1|1<<1]+(!!1+[])[1^1 ]])[(1^11<<1)-1]==({}+[])[1^1])<<1)]+([,][~1]+[] )[1-~1]+[[]+{}][!1.1%1][11111.1%11.1*111e11|!1]+ (/1/+1/[1<1][1%1])[1^11]+[[],[]+{}][1][+1]+(/<Everyone is born right handed. Only the strongest overcome it. Fight for left-handed rights and hand equality.

                          S Offline
                          S Offline
                          Stefan Kusters
                          wrote on last edited by
                          #12

                          :omg:

                          Z 1 Reply Last reply
                          0
                          • S Stefan Kusters

                            :omg:

                            Z Offline
                            Z Offline
                            ZurdoDev
                            wrote on last edited by
                            #13

                            Ya, somebody was bored and drank too much caffeine to figure that one out. :-D

                            Everyone is born right handed. Only the strongest overcome it. Fight for left-handed rights and hand equality.

                            S 1 Reply Last reply
                            0
                            • Z ZurdoDev

                              Ya, somebody was bored and drank too much caffeine to figure that one out. :-D

                              Everyone is born right handed. Only the strongest overcome it. Fight for left-handed rights and hand equality.

                              S Offline
                              S Offline
                              Stefan Kusters
                              wrote on last edited by
                              #14

                              How much coffee could that be? I guess I couldn't drink that in a year... while (!drunkenByCoffee(:java:)) { :java:++; }

                              1 Reply Last reply
                              0
                              • S Super Lloyd

                                So the real question here, which is the most mystifying language? Perl? or [Brainfuck](https://en.wikipedia.org/wiki/Brainfuck)?! :o

                                A new .NET Serializer All in one Menu-Ribbon Bar Taking over the world since 1371!

                                D Offline
                                D Offline
                                DaveAuld
                                wrote on last edited by
                                #15

                                Greek.....it's doing my head in!

                                Dave Find Me On:Web|Youtube|Facebook|Twitter|LinkedIn Folding Stats: Team CodeProject

                                1 Reply Last reply
                                0
                                • B Brisingr Aerowing

                                  (Taken from Reddit[^])

                                  not exp log srand xor s qq qx xor
                                  s x x length uc ord and print chr
                                  ord for qw q join use sub tied qx
                                  xor eval xor print qq q q xor int
                                  eval lc q m cos and print chr ord
                                  for qw y abs ne open tied hex exp
                                  ref y m xor scalar srand print qq
                                  q q xor int eval lc qq y sqrt cos
                                  and print chr ord for qw x printf
                                  each return local x y or print qq
                                  s s and eval q s undef or oct xor
                                  time xor ref print chr int ord lc
                                  foreach qw y hex alarm chdir kill
                                  exec return y s gt sin sort split

                                  Quote:

                                  It's just pointless obfuscation, but its kinda neat. That code prints out "Just another Perl hacker" using only keywords in perl. The trick to it is that the "q" keyword works as a quote, and the rest of the code is just operating on the keywords that are now just strings inside the q tags.

                                  :eek:

                                  What do you get when you cross a joke with a rhetorical question? The metaphorical solid rear-end expulsions have impacted the metaphorical motorized bladed rotating air movement mechanism. Do questions with multiple question marks annoy you???

                                  D Offline
                                  D Offline
                                  Dietmar Kern
                                  wrote on last edited by
                                  #16

                                  It's just the initials of some keywords, from which the output gets built (hex alarm chdir kill exec return --> hacker).

                                  1 Reply Last reply
                                  0
                                  • B Brisingr Aerowing

                                    (Taken from Reddit[^])

                                    not exp log srand xor s qq qx xor
                                    s x x length uc ord and print chr
                                    ord for qw q join use sub tied qx
                                    xor eval xor print qq q q xor int
                                    eval lc q m cos and print chr ord
                                    for qw y abs ne open tied hex exp
                                    ref y m xor scalar srand print qq
                                    q q xor int eval lc qq y sqrt cos
                                    and print chr ord for qw x printf
                                    each return local x y or print qq
                                    s s and eval q s undef or oct xor
                                    time xor ref print chr int ord lc
                                    foreach qw y hex alarm chdir kill
                                    exec return y s gt sin sort split

                                    Quote:

                                    It's just pointless obfuscation, but its kinda neat. That code prints out "Just another Perl hacker" using only keywords in perl. The trick to it is that the "q" keyword works as a quote, and the rest of the code is just operating on the keywords that are now just strings inside the q tags.

                                    :eek:

                                    What do you get when you cross a joke with a rhetorical question? The metaphorical solid rear-end expulsions have impacted the metaphorical motorized bladed rotating air movement mechanism. Do questions with multiple question marks annoy you???

                                    S Offline
                                    S Offline
                                    StatementTerminator
                                    wrote on last edited by
                                    #17

                                    I used to do Perl, back when it was all the rage for web development. Fun to write, an absolute nightmare to maintain. You can do just about anything with one line of code, except read it later.

                                    1 Reply Last reply
                                    0
                                    • B Brisingr Aerowing

                                      (Taken from Reddit[^])

                                      not exp log srand xor s qq qx xor
                                      s x x length uc ord and print chr
                                      ord for qw q join use sub tied qx
                                      xor eval xor print qq q q xor int
                                      eval lc q m cos and print chr ord
                                      for qw y abs ne open tied hex exp
                                      ref y m xor scalar srand print qq
                                      q q xor int eval lc qq y sqrt cos
                                      and print chr ord for qw x printf
                                      each return local x y or print qq
                                      s s and eval q s undef or oct xor
                                      time xor ref print chr int ord lc
                                      foreach qw y hex alarm chdir kill
                                      exec return y s gt sin sort split

                                      Quote:

                                      It's just pointless obfuscation, but its kinda neat. That code prints out "Just another Perl hacker" using only keywords in perl. The trick to it is that the "q" keyword works as a quote, and the rest of the code is just operating on the keywords that are now just strings inside the q tags.

                                      :eek:

                                      What do you get when you cross a joke with a rhetorical question? The metaphorical solid rear-end expulsions have impacted the metaphorical motorized bladed rotating air movement mechanism. Do questions with multiple question marks annoy you???

                                      S Offline
                                      S Offline
                                      sasadler
                                      wrote on last edited by
                                      #18

                                      Yeah, but it can be really useful too. Back in the 80s I wrote a perl script that took all the list files (Comadore Amiga 68000 assembler) from a project and combine them into a single list file that had the absolute address for all the instructions. The original list files all started at zero so they weren't really very helpful when trying to debug. I use to use perl fairly regularly (I'm retired now) to make support routines for my projects. My per scripts are very C like since, as an embedded engineer, I pretty much did all my programming in C/C++ (at least for the last 25 years or so).

                                      1 Reply Last reply
                                      0
                                      • B Brisingr Aerowing

                                        (Taken from Reddit[^])

                                        not exp log srand xor s qq qx xor
                                        s x x length uc ord and print chr
                                        ord for qw q join use sub tied qx
                                        xor eval xor print qq q q xor int
                                        eval lc q m cos and print chr ord
                                        for qw y abs ne open tied hex exp
                                        ref y m xor scalar srand print qq
                                        q q xor int eval lc qq y sqrt cos
                                        and print chr ord for qw x printf
                                        each return local x y or print qq
                                        s s and eval q s undef or oct xor
                                        time xor ref print chr int ord lc
                                        foreach qw y hex alarm chdir kill
                                        exec return y s gt sin sort split

                                        Quote:

                                        It's just pointless obfuscation, but its kinda neat. That code prints out "Just another Perl hacker" using only keywords in perl. The trick to it is that the "q" keyword works as a quote, and the rest of the code is just operating on the keywords that are now just strings inside the q tags.

                                        :eek:

                                        What do you get when you cross a joke with a rhetorical question? The metaphorical solid rear-end expulsions have impacted the metaphorical motorized bladed rotating air movement mechanism. Do questions with multiple question marks annoy you???

                                        T Offline
                                        T Offline
                                        TheGreatAndPowerfulOz
                                        wrote on last edited by
                                        #19

                                        English is still more crazy: Buffalo buffalo Buffalo buffalo buffalo buffalo Buffalo buffalo - Wikipedia[^]

                                        #SupportHeForShe Government can give you nothing but what it takes from somebody else. A government big enough to give you everything you want is big enough to take everything you've got, including your freedom.-Ezra Taft Benson You must accept 1 of 2 basic premises: Either we are alone in the universe or we are not alone. Either way, the implications are staggering!-Wernher von Braun

                                        1 Reply Last reply
                                        0
                                        • R RickZeeland

                                          Long ago I tried to install Perl, my god what a mess! removed it the same day from my PC :doh:

                                          T Offline
                                          T Offline
                                          TheGreatAndPowerfulOz
                                          wrote on last edited by
                                          #20

                                          Are you sure it's gone???!

                                          #SupportHeForShe Government can give you nothing but what it takes from somebody else. A government big enough to give you everything you want is big enough to take everything you've got, including your freedom.-Ezra Taft Benson You must accept 1 of 2 basic premises: Either we are alone in the universe or we are not alone. Either way, the implications are staggering!-Wernher von Braun

                                          R 1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups