#!/usr/local/bin/perl -w use strict ; use File::Slurp ; use Carp ; use POSIX qw( :fcntl_h ) ; use Test::More tests => 1 ; # in case SEEK_SET isn't defined in older perls. it seems to always be 0 BEGIN { *SEEK_SET = sub { 0 } unless defined \&SEEK_SET ; } eval { require B } ; SKIP: { skip < ) ; is( $slurp_text, $data_text, 'scalar slurp of DATA' ) ; } __DATA__ line one second line more lines still more enough lines we can't test long handle slurps from DATA since i would have to type too much stuff so we will stop here