1*0Sstevel@tonic-gatepackage ExtUtils::MakeMaker::bytes;
2*0Sstevel@tonic-gate
3*0Sstevel@tonic-gateuse vars qw($VERSION);
4*0Sstevel@tonic-gate$VERSION = 0.01;
5*0Sstevel@tonic-gate
6*0Sstevel@tonic-gatemy $Have_Bytes = eval q{require bytes; 1;};
7*0Sstevel@tonic-gate
8*0Sstevel@tonic-gatesub import {
9*0Sstevel@tonic-gate    return unless $Have_Bytes;
10*0Sstevel@tonic-gate
11*0Sstevel@tonic-gate    shift;
12*0Sstevel@tonic-gate    unshift @_, 'bytes';
13*0Sstevel@tonic-gate
14*0Sstevel@tonic-gate    goto &bytes::import;
15*0Sstevel@tonic-gate}
16*0Sstevel@tonic-gate
17*0Sstevel@tonic-gate1;
18*0Sstevel@tonic-gate
19*0Sstevel@tonic-gate
20*0Sstevel@tonic-gate=head1 NAME
21*0Sstevel@tonic-gate
22*0Sstevel@tonic-gateExtUtils::MakeMaker::bytes - Version agnostic bytes.pm
23*0Sstevel@tonic-gate
24*0Sstevel@tonic-gate=head1 SYNOPSIS
25*0Sstevel@tonic-gate
26*0Sstevel@tonic-gate  use just like bytes.pm
27*0Sstevel@tonic-gate
28*0Sstevel@tonic-gate=head1 DESCRIPTION
29*0Sstevel@tonic-gate
30*0Sstevel@tonic-gatebytes.pm was introduced with 5.6.  This means any code which has 'use
31*0Sstevel@tonic-gatebytes' in it won't even compile on 5.5.X.  Since bytes is a lexical
32*0Sstevel@tonic-gatepragma and must be used at compile time we can't simply wrap it in
33*0Sstevel@tonic-gatea BEGIN { eval 'use bytes' } block.
34*0Sstevel@tonic-gate
35*0Sstevel@tonic-gateExtUtils::MakeMaker::bytes is just a very thin wrapper around bytes
36*0Sstevel@tonic-gatewhich works just like it when bytes.pm exists and everywhere else it
37*0Sstevel@tonic-gatedoes nothing.
38*0Sstevel@tonic-gate
39*0Sstevel@tonic-gate=cut
40