Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

15 lines (9 sloc) 0.319 kB
#!/usr/bin/env perl
use Test::More tests => 2;
use autobox::Core;
my %hash = ( 1 => 'foo', 3 => 'bar' );
my $f;
is_deeply( $f = %hash->flip, { foo => 1, bar => 3 } );
my %f = %hash->flip;
is_deeply( \%f, { foo => 1, bar => 3 }, "Returns hash in list context" );
my %nested = ( 1 => { foo => 'bar' }, 2 => 'bar' );
Jump to Line
Something went wrong with that request. Please try again.