ler224 has asked for the wisdom of the Perl Monks concerning the following question:

Is there anyway to feed is_deeply() into an if...then statement? This didn't seem to work for me. example:
%h = ( "a" => 1, "b" => 2); %h2 = ( "a" => 1, "b" => 2); if(is_deeply(\%h,\%h2)){ <do something> }else{ <do something else> }

Replies are listed 'Best First'.
Re: Test::More is_deeply() If..Then?
by Anonymous Monk on May 29, 2014 at 03:19 UTC
    So what happened when you tried it?

    Is that good enough?

      yeah I was able to get it working. I had a problem somewhere else in my code.