Net::FastCGI::Util - Provides utility functions and constants intended for internal use only.
carp('Foo Bar'); carpf('Foo %s' 'Bar'); croak('Foo Bar'); croakf('Foo %s', 'Bar'); $boolean = is_cvref($scalar); $boolean = is_hvref($scalar); $boolean = is_instance_of($scalar, $class); $boolean = is_object($scalar); $boolean = is_octets($scalar); $boolean = is_octets_ge($scalar, $minimum); $boolean = is_octets_le($scalar, $maximum); $boolean = is_uint($scalar); $boolean = is_uint8($scalar); $boolean = is_uint16($scalar); $boolean = is_uint31($scalar); $boolean = is_uint32($scalar);
Provides utility functions and constants intended for internal use within Net::FastCGI.
Net::FastCGI
Usage
carp(@message);
Arguments
@message
carpf($format, @list);
$format
@list
croak(@message);
croakf($format, @list);
$boolean = is_cvref($scalar); $boolean = is_cvref( sub {} ); # true $boolean = is_cvref( \&is_cvref ); # true $boolean = is_cvref( bless(sub {}) ); # false
$scalar
Returns
$boolean
A boolean indicating whether or not $scalar is a unblessed code reference.
$boolean = is_hvref($scalar); $boolean = is_hvref( {} ); # true $boolean = is_hvref( bless({}) ); # false
A boolean indicating whether or not $scalar is a unblessed hash reference.
$boolean = is_handle($scalar); $boolean = is_handle(*STDOUT); # true $boolean = is_handle(\*STDOUT); # true $boolean = is_handle(IO::Handle->new); # true $boolean = is_handle(IO::String->new); # true $boolean = is_handle(STDOUT); # false
A boolean indicating whether or not $scalar is a handle.
$boolean = is_instance_of($scalar, $class);
$class
A boolean indicating whether or not $scalar is an instance of $class.
$boolean = is_object($scalar);
A boolean indicating whether or not $scalar is an object.
$boolean = is_octets($scalar);
A boolean indicating whether or not $scalar is octets.
$boolean = is_octets_ge($scalar, $low);
$low
An unsigned integer.
A boolean indicating whether or not $scalar is octets and is greater than or equal to $low in length.
$boolean = is_octets_le($scalar, $high);
$high
A boolean indicating whether or not $scalar is octets and is less than or equal to $high in length.
$boolean = is_uint($scalar);
A boolean indicating whether or not $scalar is an unsigned integer.
$boolean = is_uint8($scalar);
A boolean indicating whether or not $scalar is an unsigned 8-bit integer.
$boolean = is_uint16($scalar);
A boolean indicating whether or not $scalar is an unsigned 16-bit integer.
$boolean = is_uint31($scalar);
A boolean indicating whether or not $scalar is an unsigned 31-bit integer.
$boolean = is_uint32($scalar);
A boolean indicating whether or not $scalar is an unsigned 32-bit integer.
Argument "%s" is not a CODE reference
Argument "%s" is not a HASH reference
Argument "%s" is not an instance of "%s"
Argument "%s" must be greater than or equal to %u octets in length
Argument "%s" must be less than or equal to %u octets in length
Argument "%s" is outside of octets length
Argument "%s" is not an unsigned integer
Argument "%s" is not an unsigned 8-bit integer
Argument "%s" is not an unsigned 16-bit integer
Argument "%s" is not an unsigned 31-bit integer
Argument "%s" is not an unsigned 32-bit integer
Unsupported FastCGI version: %u
None by default. Functions and constants can either be imported individually or in sets grouped by tag names. The tag names are:
:all
:carp
carp
carpf
croak
croakf
:errmsg
ERRMSG_
:predicate
is_
:common
Christian Hansen chansen@cpan.org
chansen@cpan.org
Copyright (c) 2008 Christian Hansen. All rights reserved.
This program is free software, you can redistribute it and/or modify it under the same terms as Perl itself.
To install Net::FastCGI, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::FastCGI
CPAN shell
perl -MCPAN -e shell install Net::FastCGI
For more information on module installation, please visit the detailed CPAN module installation guide.