On Sat, Mar 12, 2005 at 11:12:49AM -0500, Jeff 'japhy' Pinyan wrote:
> On Mar 11, Peter Rabbitson said:
> 
> >>>_NASTY_SUB (\%{$batches{$current_batch}});
> >
> >my %cards = %{clone (\%{$sources{${$batch_ref}{by_method}}{card_def}} )};
> 
> You've got two instances of
> 
>   \%{ thing_which_is_a_hashref }
> 
> where you could just write
> 
>   thing_which_is_a_hashref
> 
> -- 

FSCK! I never thought about it... I don't even want to think how many ugly
reference/dereference pairs I've written so far. Thanks for the tip!
Long live Larry Wall :) 

Peter

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to