<?xml version="1.0" encoding="windows-1252"?>
<node id="308131" title="Re: Need help shortening this" created="2003-11-18 16:18:08" updated="2005-06-15 15:43:12">
<type id="11">
note</type>
<author id="36507">
jynx</author>
<data>
<field name="doctext">
after a few hours work, this is the best that i can come up with that doesn't deviate from your original algorithm. It's shorter by some 50+ characters (but still 6 characters over an 80-character, 4-line sig), and i'm sure more could be done; i just don't see what at the moment...
&lt;code&gt;
# This has been tested with perl 5.6.1 on Solaris 9 only
@a=map{sub{my$a="push\@s,($_[2]".join($_[1],('(pop@s||1)')x$_[0])."$_[3])";sub{
eval$a}}-&gt;(@$_)}[1,'','','x2'],[2,'+'],[2,'*'],[0,'',1],[1,'','print chr'];&amp;{$a
[$_]}for map{($f=ord(substr'"!3!+"%"#*9):B"--11$2A);"-!$):)1+!-%")*%")*-*%"!#'.
'#))*%2!2%"##))B)1!#"*"A$)",+B"$")*%"#)C*-1!3"-"%"#*A)1!1+,%"1*B',$_,1)-33)%8,$
f/8}0..111
&lt;/code&gt;

anyone else?&lt;br&gt;
jynx</field>
<field name="root_node">
307322</field>
<field name="parent_node">
307322</field>
</data>
</node>
