<?xml version="1.0" encoding="windows-1252"?>
<node id="145724" title="Jasper" created="2002-02-15 12:13:59" updated="2003-12-25 03:54:09">
<type id="15">
user</type>
<author id="145724">
Jasper</author>
<data>
<field name="doctext">
I have been programming in perl for several years.&lt;br&gt;&lt;br&gt;

I like programming in perl.&lt;br&gt;&lt;br&gt;

[id://124845|This] is my most upvoted node. And my first post, too. I hadn't learnt how to create a user account at that state. (Boy, does it look bad now - must revisit it at some stage to fix bugs, and shorten it a bit)&lt;br&gt;&lt;br&gt;

Maximillian tells me to do horrible things. I try to ignore him.&lt;br&gt;&lt;br&gt;

If anyone remembers a webcomic of the early 00s called 'Trevor the cat' that was me.&lt;br&gt;&lt;br&gt;

I like the trickery of perl golf..&lt;br&gt;&lt;br&gt;

Here's a thing to print out all the valid permutations of a number of pairs of parentheses (don't try it on a number bigger than 7, it's also quite a good machine killer):&lt;br&gt;&lt;br&gt;

&lt;code&gt;$c-=fork?$c?s//(/:exit:- s//)/for($_)x(2*pop);$c||print&lt;/code&gt;&lt;br&gt;&lt;br&gt;

This won me $25 in the fonality competition:&lt;br&gt;&lt;br&gt;

&lt;code&gt;-lp map{y/IVXLC/XLCDM/,s!\d!$&amp;^4?$&amp;^9?V x($&amp;&gt;3).I x($&amp;%5):IX:IV!ewhile//;$$_=$n++}@d=0..4e3;y/m/-/;s/\w+/+${$&amp;}/g;$_=$d[eval]&lt;/code&gt;

&lt;br&gt;&lt;br&gt;Although I completely missed the excellent trickery of &lt;code&gt;4x$&amp;%1859^7&lt;/code&gt; which might have saved me four or five strokes!&lt;br&gt;&lt;br&gt;

Some of my other solutions (prizes for working out what the problem was!)&lt;br&gt;

&lt;code&gt;-lpaF| for$i(0..19){$s{$_ x($i&gt;13).($i%7).$_ x($i&gt;6&amp;$i&lt;13).(6-$.).$_ x($i&lt;6)}|=$F[$i]for 0..5}}{$_=grep/X/,%s&lt;/code&gt;&lt;br&gt;&lt;br&gt;


&lt;code&gt;pos=$i++/2,//g,print"$`",$_=reverse,/^$'/?$/:redo for pop&lt;/code&gt;&lt;br&gt;&lt;br&gt;


&lt;code&gt;-l $k=(pop)x99;print+map{$k=~s///;(uc..Z,@a=A..$&amp;)[$#a]}&lt;&gt;=~/\pL/g&lt;/code&gt;&lt;br&gt;&lt;br&gt;

&lt;code&gt;$_=$"x map$b.='-',2..pop;$t=$t?"$`/$_/$'|
$t
|$_|$'/":"+$b+$_+"while//g;print" $_+$b+
$t
+$b+
"&lt;/code&gt;&lt;br&gt;&lt;br&gt;


&lt;code&gt;print map"@{['###  ##  # #'=~/.../g]}[(/./g)[@_]]
",-1003e5,3111322133,31e8|100,3121113131,-10x4 if split'',pop&lt;/code&gt;&lt;br&gt;&lt;br&gt;

&lt;code&gt;
-lp $;+=y/.:|-/125/d?$_:19*$;for/./g;$_=$&lt;/code&gt;&lt;br&gt;&lt;br&gt;


&lt;code&gt;-p0 sub g{my($b,$r)=@_;$s{$b}++||map{$p='.'x8x/[A-Z]/;$s||=$r x$b=~/$c
/||g($n=$b,"$r$c ".($n=~s/$_(($p$c)+$p)(?!$_)($c| )/$3$1$_/s-2*/ /).$/)for$",$c=$_}$b=~/\w/g;$s}$_=g$_&lt;/code&gt;
&lt;br&gt;&lt;br&gt;

p.s. if you recognize the Maximillian action figure from the Black Hole, you might be interested in joining my Yahoo group for collecting like stuff (&lt;a href="http://groups.yahoo.com/group/humanoid"&gt;group&lt;/a&gt;)
</field>
<field name="lasttime">
2013-04-02 13:20:01</field>
<field name="experience">
1868</field>
<field name="user_scratchpad">
360101</field>
<field name="imgsrc">
198450</field>
<field name="timeformat">
</field>
<field name="numwriteups">
224</field>
<field name="location">
London</field>
<field name="timezone">
</field>
<field name="codewrapoff">
</field>
<field name="codewraplength">
</field>
<field name="codeautowrap">
</field>
<field name="codeprefix">
</field>
<field name="codebig">
</field>
</data>
</node>
