X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FRequest%2FUpload.pm;h=019290cdba742b006942f7738fe278041b087c61;hb=d536010b1fe05ffe44ecf20d9ca0ac1445d1d2ed;hp=1427bcb1852198e658e4911e6ea22e35a6dffde5;hpb=554c758740d1f5b5b548b777e7180e556f9f6a55;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst/Request/Upload.pm b/lib/Catalyst/Request/Upload.pm index 1427bcb..019290c 100644 --- a/lib/Catalyst/Request/Upload.pm +++ b/lib/Catalyst/Request/Upload.pm @@ -5,7 +5,7 @@ with 'MooseX::Emulate::Class::Accessor::Fast'; use Catalyst::Exception; use File::Copy (); -use IO::File qw( SEEK_SET ); +use IO::File (); use File::Spec::Unix; use namespace::clean -except => 'meta'; @@ -147,12 +147,12 @@ sub slurp { binmode( $handle, $layer ); - $handle->seek(0, SEEK_SET); + $handle->seek(0, IO::File::SEEK_SET); while ( $handle->sysread( my $buffer, 8192 ) ) { $content .= $buffer; } - $handle->seek(0, SEEK_SET); + $handle->seek(0, IO::File::SEEK_SET); return $content; }