Skip to content
This repository
Fetching contributors…

Cannot retrieve contributors at this time

file 15 lines (11 sloc) 0.325 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#!/usr/bin/perl

use perl5i::latest;

use Test::More;
use Test::Output;

{
    my %hash = (foo => 23, bar => 42);
    my $as_string = join " ", map { "$_ => $hash{$_}" } keys %hash;
    stdout_is { %hash->say } "$as_string\n", "%hash->say";
    stdout_is { %hash->print } $as_string, "%hash->print";
}

done_testing();
Something went wrong with that request. Please try again.