The Perl Toolchain Summit 2025 Needs You: You can help 🙏 Learn more

#!/usr/bin/perl
use strict;
use Test::More tests => 2;
my %rc;
my $ok;
$ok = tie(%rc, 'Tie::File::Hashify', undef, format => '- %s => %s');
ok($ok, 'tie worked');
$rc{foo} = 'bar';
ok(%rc eq "- foo => bar\n", 'format works');
untie %rc;