in reply to Ugly variable-length record handling

Maybe a little off-topic, but in: open(TEMP, ">$temp.dat") "$" is useless there, or it's just me ?

Replies are listed 'Best First'.
Re^2: Ugly variable-length record handling
by Melly (Chaplain) on Dec 28, 2006 at 15:41 UTC

    Well spotted - it was a typo from my simplifying the code - originally the line was open(TEMP, ">$out_dir/temp.dat")...

    map{$a=1-$_/10;map{$d=$a;$e=$b=$_/20-2;map{($d,$e)=(2*$d*$e+$a,$e**2 -$d**2+$b);$c=$d**2+$e**2>4?$d=8:_}1..50;print$c}0..59;print$/}0..20
    Tom Melly, pm@tomandlu.co.uk