Filter::Template::UseBytes - conditionally use bytes.pm depending on availability


Filter-Template documentation  | view source Contained in the Filter-Template distribution.

Index


NAME

Top

Filter::Template::UseBytes - conditionally use bytes.pm depending on availability

SYNOPSIS

Top

	use Filter::Template ( isa => "Filter::Template::UseBytes" );

	print "Phi length in characters: ", length(chr(0x618)), "\n";
	{% use_bytes %}
	print "Phi length in bytes: ", length(chr(0x618)), "\n";

DESCRIPTION

Top

The UseBytes template evaluates to use bytes; if Perl 5.005_55 or later is running. Otherwise it evaluates to an empty string, which does nothing but doesn't throw an exception either.

BUGS

Top

All the caveats of Filter::Template apply here.

SEE ALSO

Top

Filter::Template.

AUTHOR & COPYRIGHT

Top


Filter-Template documentation  | view source Contained in the Filter-Template distribution.