a couple more for a sunny afternoon before heading pub-wards,
as always - i'm sure peeps have done this:
print"\ec";@a=qw{aaA cAaAa ea hd jaC kaAa laAb nAa oC pAaaA raAa sc tA
ubA};for(split//,"4dbcf078c32af92a6f30152a"){($f=$a[hex$_]||$"x5)=~s#.
+#
$r.=$&;($_=$'.$"x3)=~s*\w*($& ne uc$&?". ":"___ ")x(-64+ord uc$&)*eg#e
+;
select$q,$q,$q,(print"\e[H$_$/$r$/")/15for split//}
$_='DHFNLJRPIQTXV^\Zb`Yatxqv~|c}C';s#.#push@a,unpack B8,pack v,-67+ord
+$&
#eg;$_=<STDIN>;print"\ec";s#[A-Z]#\{$&#g;s#\d#|$&#g;s#.#$c=$a[$&=~/\d/
+?(
$&||10)-1:$&eq$"?125:-97+ord lc$&];printf"\e[%d;%dH%s\e[%d;%dH%s$/",$_
+/2
,1+$x+$_%2,chop$c?".":"",4,$x+2,$&=~/\W/?"":$&for 2..7;$x+=3#eg
The second takes an input from stdin - and can cope with numbers and upper or lowercase letters - haven't done punctuation yet....
Have a good w/e.
love handles & fistycuffs.
Al
Edit: bad formatting in morse...
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.