Dear monks,
Once i came across a JAPH tutorial (i can't find it anymore in the supersearch), and i found out that you can write the command print as \160\162\151\156\164
Now this opened my eyes in JAPH creation (i'm a rookie in it), and is wanted to list the total alphabet.
I was amazed that there is no logic in numbering: \101=A, \102=B .... \108=8 \109=9 \110=H
So i thought, let's print a list from 100 to 200, so i can read back the output, and i started:
for (my $i=101; $i<=200; $i++) {
$a = "\\" . $i;
print "$i = $a \n";
}
As most of the JAPHERS probably know, this prints:
101 = \101
102 = \102
etc...
I know i'm lazy, (thats why i like perl), and i don't want to write out all the chars by hand, but i would not know how to proceed.
Could any monk enlighten my darkend path?
Thanks!
"We all agree on the necessity of compromise. We just can't agree on when it's necessary to compromise." - Larry Wall.
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.