On Sat, 15 Mar 2003 10:50:54 -0600, [EMAIL PROTECTED] (David Gilden) wrote:
> # Is the code below -- better or correct? > > foreach my $bag (@bags){ > $bags_ordered{$bag} = $bag unless exists $bags_ordered{$bag} > } You can also try: $bags_ordered{$bag} = $bags_ordered{$bag} || $bags; #or $bags_ordered{$bag} ||= $bags; -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]