注册 登录
编程论坛 Perl论坛

Perl的代码怎么变成骆驼形状

ifzzZ 发布于 2021-12-29 23:27, 3560 次点击
linux下看到环境里的有的perl脚本代码变成了骆驼的性状,有很多只骆驼,完全看不懂,但是也可以正确执行,如下所示给出了一只,请问这是怎么做到的?

程序代码:
#!/usr/bin/perl
eval eval '"'.


                                      '#'.'!'.'/'.
           ("\["^                   '.').('['^'(').
        ('['^')').                '/'.('`'|'"').('`'

 |')').('`'  |'.').              '/'.('['^'+').("\`"|
'%').('['^')').('`'|            ',').('!'^'+').(('[')^
'.').('['^'(').("\`"|          '%').('{'^'[').('['^'('
  ).('['^'/').(('[')^        ')').('`'|')').('`'|'#').(
       '['^'/').';'.(      '!'^'+').('['^'.').('['^'(').
      ('`'|'%').('{'     ^'[').('['^',').('`'|'!').("\["^
     ')').('`'|'.').   ('`'|')').('`'|'.').('`'|"'").('['^
    '(').';'.("\!"^   '+').('['^'.').('['^'(').('`'|('%')).(
    '{'^'[').("\`"^  "'").('`'|'%').('['^'/').('`'|'/').('['^
    '+').('['^'/')  .':'.':'.('`'^',').('`'|'/').('`'|"\.").(
    '`'|"'").';'.(  '!'^'+').('!'^'+').'#'.('{'^'(').('['^'.')
    .('['^'+').('['^'+').('`'|'/').('['^')').('['^'/').(('{')^
    '[').('`'|'!').('{'^'[').('`'|',').('`'|')').('['^'(').('['
     ^'/').('{'^'[').('`'|'/').('`'|'&').('{'^'[').('`'|"\#").(
     '`'|'/').('`'|'.').('`'|'&').('`'|')').('`'|"'").('{'^'[').
      ('`'|'&').('`'|')').('`'|',').('`'|'%').('!'^'+').('`'|'-')
       .('['^'"').('{'^'[').'\\'.'@'.('`'|'#').('`'|'/').('`'|'.'
        ).('`'|'&').('`'|')').('`'|"'").'_'.('`'|'&').(('`')| ')'
         ).('`'|',').('`'|'%').';'.('!'^'+').('`'|'-').('['^  '"'
          ).('{'^'[').'\\'.'@'.('`'|'!').('['^'('). ('['^'('  ).(
            '`'|'%').('['^')').('['^'/').'_'.('`'|  "\&").(   '`'
             |')') .('`'|',').('`'|'%').';'.('!'^   "\+").(   '`'
                   |'-').('['^'"').('{'^'[').''.    ('\\').   '$'
                   .(('`')|    '$').('`'| '%').(     ('`')|   ((
                   '"'))).     ('['^'.'   ).('`'     |"'").  +(
                   '{'^'['     ).("\{"^   '[').       ('{'^  (
                   '[')).      ('{'^'['   ).+(         '{'^
                   '[').(     '{'^'[').   '='.         ('{'
                    ^'[')     .("\^"^(    '`'|         '.')
                    ).';'     .("\!"^     '+')         .''.
                    ('`'     |'-').       ('['         ^'"'
                    ).+(     '{'          ^'['         ).((
                    '\\'      )).         '$'          .+(
                    '`'        |((       '$'           )))
                    .+(         '`'     |((            '%'
                    )))          .+(   '`'              |+
                    ((             '"')))               .(
                    ((              '['))               ^+
                    ((             '.'))).(             ((
                   '`'            ))|+ "'").            ((
                  '_'           )).''.  ('`'           |((
                 '&')         )).('`'|   ')'          ).+(
               ('`')|                                ',').(
             '`'|'%')                               .("\{"^
5 回复
#2
ifzzZ2022-01-06 13:28
#3
fall_bernana2022-01-12 11:32
回复 楼主 ifzzZ
代码不完整,看不出想做啥
#4
apull2022-01-12 11:56
ascii画了解一下
https://tool.lu/asciipainting/index.html

程序代码:


                ^    ^
               / \  //\

 |\___/|      /   \//  .\

 /O  O  \__  /    //  | \ \
/     /  \/_/    //   |  \  \
@___@'    \/_   //    |   \   \
   |       \/_ //     |    \    \
   |        \///      |     \     \
  _|_ /   )  //       |      \     _\

 
'/,_ _ _/  ( ; -.    |    _ _\.-~        .-~~~^-.

 ,-{        _      `-.|.-~-.           .~         `.
  '/\      /                 ~-. _ .-~      .-~^-.  \
     `.   {            }                   /      \  \
   .----~-.\        \-
'                 .~         \  `. \^-.
  ///.----..>    c   \             _ -~             `.  ^-`   ^-_
    ///-._ _ _ _ _ _ _}^ - - - - ~                     ~--,   .-~




[此贴子已经被作者于2022-1-12 11:58编辑过]

#5
fall_bernana2022-01-12 14:26
回复 4楼 apull
eval里是一段可执行代码,只是写成了骆驼的形状而已。
#6
apull2022-01-12 20:18
源代码:
程序代码:

#include <stdio.h>
#define _(_) putchar(_);

int main(void){int i = 0;_(
++++++++++++++++++++++++++++
++++++++++++++++++++++++++++
++++++++++++++++++++++++++++
++++++++++++++++++++++++++++
++++++++++++++++++++++++++++
++++i)_(++++++++++++++++++++
++++++++++++++++++++++++++++
++++++++++i)_(++++++++++++++
i)_(--++i)_(++++++i)_(------
----------------------------
----------------------------
----------------------------
----------------------------
----------------i)_(--------
----------------i)_(++++++++
++++++++++++++++++++++++++++
++++++++++++++++++++++++++++
++++++++++++++++++++++++++++
++++++++++++++++++++++++++++
++++++++++++++++++++++++++++
++++++++++++++++++++++++++i)
_(----------------i)_(++++++
i)_(------------i)_(--------
--------i)_(----------------
----------------------------
----------------------------
----------------------------
----------------------------
------i)_(------------------
----------------------------
i)return i;}


拼了一些,剩下的太麻烦了。
忽略空白字符的语言都可以拼。
变形后,
程序代码:

#include <stdio.h>
#define _(_) putchar(_);

int main(void){int i = 0;_(
                      ++        ++
                     ++ ++     ++ ++
                    ++   ++   ++   ++
      ++     ++    ++     ++ ++     ++
      ++ ++++ ++  ++       ++        ++
      ++      ++ ++       ++     --    ++
     ++ ++ ++  ++       ++       ++    ++
    ++        ++ ++    ++        ++     ++
   ++        ++   ++  ++         ++      ++
   ++--  -- ++     ++++          ++       ++
   ++++++++++       ++           ++        ++
        ++           ++          --         ++
        ++            ++         --          ++
        ++   ++   ++   ++                     ++
        ++  ++     ++   ++                     ++
      i)_(++       ++    ++                  ++
      ++           ++     ++              ++
      ++++++++++++++       ++         ++
         ++                  ++++++++
         ++                       ++
++++++++++i)_(++++++++++++++
i)_(--++i)_(++++++i)_(------
----------------------------
----------------------------
----------------------------
----------------------------
----------------i)_(--------
----------------i)_(++++++++
++++++++++++++++++++++++++++
++++++++++++++++++++++++++++
++++++++++++++++++++++++++++
++++++++++++++++++++++++++++
++++++++++++++++++++++++++++
++++++++++++++++++++++++++i)
_(----------------i)_(++++++
i)_(------------i)_(--------
--------i)_(----------------
----------------------------
----------------------------
----------------------------
----------------------------
------i)_(------------------
----------------------------
i)return i;}


https://www.bccn.net/run/中用c++运行一下。
1