Advertisement
Guest User

Untitled

a guest
Oct 15th, 2015
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. use 5.10.0;$n=2;say"| "x$_,"+","-"x(16*$n-4*$_+13),"+"," |"x$_ for 0..4*$n+3;$p="| "x(3*$n+2);say"$p+ | ","| "x2x$n,"+ $p|";$p=~s/..//,$q="-"x(4*$_-1),say"$p+$q+ ","| "x(2*$n-2*$_+1),"+$q+ $p|"for 1..$n;$p=~s/..//;say$p,("+---"."-"x4x$n)x2,"+ $p|";$p=~s/..//,$q="-"x(4*$n+3)."-"x4x$_,say"$p+$q+ | ","| "x2x($n-abs$_),"+$q+ $p|"for-$n..$n;say" "x(8*$n+6),"+----$q+"
  2.  
  3. paste this into
  4.  
  5. http://www.tutorialspoint.com/execute_perl_online.php
  6.  
  7. or your fav perl interpreter (play around with the value of $n)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement