Author image Barrie Slaymaker

NAME

StateML::Utils - Some handy utility functions

SYNOPSIS

    use StateML::Utils qw( empty as_string );

DESCRIPTION

Some handy uti.... you get the idea.

FUNCTIONS

empty

Returns TRUE if the single arg is not defined or of zero length. "0" is not empty. This does not have a prototype like defined() or length() because the precedance can't be set properly. Tests $_ if no parameters are passed.

as_str
    warn as_str "hey!", undef.

Converts the list of parameters to a string, quoting plain scalars if need be and reporting them as undef if they are undefined. May handle other situations/structures in the future.

Does an implicit join( "", ... ) in scalar context.

LIMITATIONS

COPYRIGHT

    Copyright 2003, R. Barrie Slaymaker, Jr., All Rights Reserved

LICENSE

You may use this module under the terms of the BSD, Artistic, or GPL licenses, any version.

AUTHOR

Barrie Slaymaker <barries@slaysys.com>