Quite hard to see what's going on with the use of nasty variables $} and @}.
A brief breakdown:
# put some numbers into $_
$_="415250511528293422193223122519645759676174";
# fluff
$_{$_}++;
# set $} to an array ref
$}=[];
# split the chars of this ref : A R R A Y ( 0 x 8 a 6 f 0 a c )
@_ = (split//,$});
# split each set of two chars in $_ into @a
push(@a,$&) while s;..;;;
# set @} to contain the chars from @_;
@}=map$_,@_;
# set @_ to the first 6 chars of @}, which are "ARRAY("
{@_=map @}->[$_],(0..5);}
# into each scalars, put characters built from the @a and @_
$j=join'',map(chr((ord$_[0])+$_),(@a[0..3]));
$a=join'',map(chr((ord$_[1])+$_),(@a[4..10]));
$p=join'',map(chr((ord$_[4])+$_),(@a[11..14]));
$h=join'',map(chr((ord$_[5])+$_),(@a[15..20]));
# print out the four scalars
print join' ',$j,$a,$p,$h,"\n";
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.