微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

补上昨天的博文,Perl写音乐《午夜DJ》

突然脑洞打开,写了一首Perl式的music,个人感觉良好。。。

偷笑

代码如下:

#Mtp : music to perl

#author : Perl Hacker
#Date : 2014.12.02
#from : 午夜DJ to IfMeIsDJ
if ($me = $DJ = $Dj = $dJ = $dj = $DJ){
if ($me = $DJ = $Dj = $dJ = $dj = $DJ){
if ($me = $DJ = $Dj = $dJ = $dj = $DJ){
if ($me = $DJ = $Dj = $dJ = $dj = $DJ){
if ($me = $DJ = $Dj = $dJ = $dj = $DJ){
if ($me = $DJ = $Dj = $dJ = $dj = $DJ){
365*$day;not $a_holiday;
if (wear($headset)) {$tonight_party = "MY BIGGEST!"}
$me = midnight($DJ);
sub feel{my $music};
$happytime=not last;
if($me = $DJ ){tell you_love_me;tell you_love_me;tell you_love_me}
if($me = $DJ ){tell you_love_me;tell you_love_me;tell you_love_me}
while ($night_fall) {$we,open Our eyes;}
wear($My_apple);Put_LV_bag(my $left);
$me = midnight($DJ);
sub feel{my $music};
$happytime=not last;
if($me = $DJ ){tell you_love_me;tell you_love_me;tell you_love_me}
if($me = $DJ ){tell you_love_me;tell you_love_me;tell you_love_me}}}}}}}
#Rap Rap Rap Rap
=begin
Hello baby I'm DJ!
This time with me feel my music.
If i'm dj will you love me?
Come on Together go to party!
如果我是一位午夜DJ
你是否愿意把我体会
想要正式的问你一句
你是否会爱上一位DJ
=cut
if($me = $DJ ){...}

if($me = $DJ ){...}


代码执行结果:

>>>


完美运行!!!!

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐