in reply to Miniature golf question

Trick I learned in Damian's class...
map {/^t/?($_,$hash{$_}):()} keys %hash;

Update Golfed I guess it would be...

%h=map{/^t/?($_,$h{$_}):()}keys%h;

                - Ant

Replies are listed 'Best First'.
Re: Re: Miniature golf question
by nysus (Parson) on Jul 16, 2001 at 23:01 UTC
    Very cool. I felt in bones there had to be a way to do it just using map. Thanks.

    $PM = "Perl Monk's";
    $MCF = "Most Clueless Friar Abbot Bishop";
    $nysus = $PM . $MCF;
    Click here if you love Perl Monks