######################################################## # short summary, with newline added :-) $_="4a75737420616e6f74686572205065726c206861636b65720a"; for (m/(..)/g) {print chr(hex($_))} ######################################################## # hex string Just another Perl Hacker, verbatim $_="4a75737420616e6f74686572205065726c206861636b6572"; # substitute spaces out, /x allows whitespace in pattern # gets rid of spaces and newlines s!\s!!xg; # useless convoluted string assignment to $$ ($PID) # first q delim ; then concats as shown $$=q;$a='another';. ';$$='. "=". 'my$a=7."a9";$_.=$a;s!...!-$&!xg;$_.="\ x"x5;;m|..|xg;$$.=$&;$a=qq(c)' +; # useless assignment of $a (null) to $$ ($PID) $$=$a; # functional line adds \x to hex digit pairs, /x allows whitespace s((..))(\\x$1)xg; # print the string, need eval to render \x4a as ASCII J etc eval "print \"$_\";"; # useless assignment $a='sttr|\..%a=$perlhacker);$a=q|bx|';
In reply to Re: The *Real* Perl Couple
by tachyon
in thread The *Real* Perl Couple
by iamcal
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |