HACKER
TALK
Home
Channels
beta
Bookmarks
Messages
Notifications
Sign In
zhoujiachao
zhoujiachao
zhoujiachao
zhoujiachao
Joined 4 years ago
0 Following0 Followers
JuneJulyAugSeptOctNovDecJanFebMarAprMay
PostsCommentsChannels
zhoujiachao
zhoujiachao
·4 years ago

google 前工程师给女友表白方式参考下 sunglasses :

#!/usr/bin/perl -w
use strict;

     my$f=           $[;my
   $ch=0;sub       l{length}
 sub r{join"",   reverse split
("",$_[$[])}sub ss{substr($_[0]
,$_[1],$_[2])}sub be{$_=$_[0];p
 (ss($_,$f,1));$f+=l()/2;$f%=l 
  ();$f++if$ch%2;$ch++}my$q=r
   ("\ntfgpfdfal,thg?bngbj".    
    "naxfcixz");$_=$q; $q=~
      tr/f[a-z]/ [l-za-k] 
        /;my@ever=1..&l
          ;my$mine=$q
            ;sub p{
             print
              @_;
               }
                         
       be $mine for @ever

代码输出:

kristen, will you marry me?

来源:https://www.perlmonks.org/index.pl?node_id=384100

Terms of ServicePrivacy PolicyCookie PolicyMarkdown SyntaxUser PointsUser Feedback© 2025 Shware Inc.