| 1 | package IO::Framed::X::EmptyWrite; | ||
| 2 | |||
| 3 | =encoding utf-8 | ||
| 4 | |||
| 5 | =head1 NAME | ||
| 6 | |||
| 7 | IO::Framed::X::EmptyWrite | ||
| 8 | |||
| 9 | =head1 SYNOPSIS | ||
| 10 | |||
| 11 | use Try::Tiny; | ||
| 12 | use IO::Framed::Write; | ||
| 13 | |||
| 14 | my $iof = IO::Framed::Write->new( $some_socket ); | ||
| 15 | |||
| 16 | try { $iof->write(q<>) } | ||
| 17 | catch { | ||
| 18 | if ( try { $_->isa('IO::Framed::Read') } ) { ... } | ||
| 19 | }; | ||
| 20 | |||
| 21 | =head1 DESCRIPTION | ||
| 22 | |||
| 23 | Thrown when empty string or undef is given to C<write()>. | ||
| 24 | |||
| 25 | =cut | ||
| 26 | |||
| 27 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 28 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 29 | |||
| 30 | 1 | ▶ | use parent qw( IO::Framed::X::Base ); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 31 | |||
| 32 | 1 | 1; | |