changes
[urisagit/Perl-Docs.git] / t / slurp.t
CommitLineData
12444d55 1#!/usr/local/bin/perl -w -T
635c7876 2
3use strict ;
99709852 4use File::Slurp qw( write_file slurp ) ;
635c7876 5
99709852 6use Test::More tests => 1 ;
635c7876 7
8my $data = <<TEXT ;
9line 1
10more text
11TEXT
12
13my $file = 'xxx' ;
14
15write_file( $file, $data ) ;
16my $read_buf = slurp( $file ) ;
17is( $read_buf, $data, 'slurp alias' ) ;
18
19unlink $file ;