This one is pretty straighforward once you see through the line noise. But for my novice brain it's reasonably complex. It's also my first shot at using eval for anything. Yes, I've led a sheltered life.
If you take the time to figure it out you'll find an anonymous array, a list, a regexp, and a few other goodies in there, along with junk that doesn't do anything, but the untrained eye has to hunt.
Here it is:
for(q=1517081319272609201819270013141907041727150417112707000210041728
+26==~m=\d{2}(?#~$m;print"hi mom.\n";)=sigs){$$m.=[q=a=..q$z$,q$"$,$",
+$/]->[$_]}eval$$m
This is just a chance for me to think through 'puzzles' and learn something along the way. I welcome comments, as I enjoy discovering new facets of Perl.
"If I had my life to do over again, I'd be a plumber." -- Albert Einstein
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.