SPUG: Diff keys(%hast0) with keys(%hash1) both ways ?
Atom Powers
atom.powers at gmail.com
Fri Apr 14 13:57:16 PDT 2006
This is why I love perl, there is an easy solution to everything.
On 4/14/06, Ivan Heffner <iheffner at gmail.com> wrote:
> Why not just do this:
>
> for my $check ( keys %{ { %cleantests, %dirtytests } } ) {
> printf "%s:%d_%d\n", $check, $dirtytests{$check}||0, $cleantests{$check}||0;
> }
>
Is there a longer way to write this out? I am pretty sure I understand
what it means, but if it could be expanded more it would be easier to
maintain later.
--
--
Perfection is just a word I use occasionally with mustard.
--Atom Powers--
More information about the spug-list
mailing list