The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Devel::Ladybug::Utility - System functions required globally by Devel::Ladybug

SYNOPSIS

  use Devel::Ladybug::Utility;

ENVIRONMENT

Using this module will enable backtraces for all warns and fatals. The messages are informative and nicely formatted, but can be quite verbose. To disable them, set the environment variable LADYBUG_QUIET to 1.

FUNCTIONS

  • loadYaml($path);

    Load the YAML file at the specified path into a native Perl data structure.

  • randstr()

    Return a random 6-byte alphabetic string

  • timestamp([$time])

    Return the received unix epoch seconds as YYYY-MM-DD HH:MM:DD. Uses the current time if none is provided.

  • date([$time]);

    Return the received unix epoch seconds as YYYY-MM-DD. Uses the current time if none is provided.

  • time([$time]);

    Return the received unix epoch seconds as hh:mm:ss. Uses the current time if none is provided.

  • warnHandler([$exception])

    Pretty-print a warning to STDERR

  • dieHandler([$exception])

    Pretty-print a fatal error to STDERR

  • formatErrorString($errStr)

    Backtrace formatter called by error printing functions.

SEE ALSO

This file is part of Devel::Ladybug.

1 POD Error

The following errors were encountered while parsing the POD:

Around line 65:

'=item' outside of any '=over'