Filter::Template::UseBytes - conditionally use bytes.pm depending on availability
Contents
Bugs
All the caveats of Filter::Template apply here.
Description
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.
Name
Filter::Template::UseBytes - conditionally use bytes.pm depending on availability
See Also
Filter::Template.
Synopsis
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";
Version
version 1.043
