Acme-Tie-Formatted
view release on metacpan or search on metacpan
lib/Acme/Tie/Formatted.pm view on Meta::CPAN
return '' unless @args;
my $format = pop @args;
# Return a null string if there were no arguments
# to be formatted.
return '' unless @args;
# Format arguments and return.
local $_;
return join($", map { sprintf($format, $_) } @args);
}
# Stolen directly from Tie::Comma.
# Invalidate all other hash access.
use subs qw(
STORE EXISTS CLEAR FIRSTKEY NEXTKEY );
*STORE = *EXISTS = *CLEAR = *FIRSTKEY = *NEXTKEY =
sub {
croak "You can only use %format by accessing it";
};
( run in 0.791 second using v1.01-cache-2.11-cpan-3b35f9de6a3 )