IO::Framed::X::ReadError
use Try::Tiny; use IO::Framed::Read; my $iof = IO::Framed::Read->new( $some_socket ); try { $iof->read(20) } catch { $_->get('OS_ERROR'); #gets $! $_->errno_is('EAGAIN'); #should always be false };
Thrown on read errors. Subclasses X::Tiny::Base.
To install IO::Framed, copy and paste the appropriate command in to your terminal.
cpanm
cpanm IO::Framed
CPAN shell
perl -MCPAN -e shell install IO::Framed
For more information on module installation, please visit the detailed CPAN module installation guide.