X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=lib%2FCatalyst%2FRequest%2FUpload.pm;h=019290cdba742b006942f7738fe278041b087c61;hp=1427bcb1852198e658e4911e6ea22e35a6dffde5;hb=27dad9301094f25bcedc66c476ec8b9d61521fb7;hpb=ae7da8f5d10d2d8b4ada389cd260b4bb9d7b07d5 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; }