App::unbelievable::Util - common utilities
When truthy, "_diag" produces output.
Load strict, warnings, &c. into the caller.
Lazy "croak" in Carp.
Lazy "diag" in Test::More, conditioned on "$VERBOSE". If the first argument is a scalar reference, output is suppressed unless "$VERBOSE" is at least the referenced value.
Add a #line directive to a string. Usage:
#line
my $str = _line_mark_string <<EOT ; $contents EOT
or
my $str = _line_mark_string __FILE__, __LINE__, <<EOT ; $contents EOT
In the first form, information from caller will be used for the filename and line number.
caller
The #line directive will point to the line after the _line_mark_string invocation, i.e., the first line of <C$contents>. Generally, $contents will be source code, although this is not required.
_line_mark_string
$contents
$contents must be defined, but can be empty.
To install App::unbelievable, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::unbelievable
CPAN shell
perl -MCPAN -e shell install App::unbelievable
For more information on module installation, please visit the detailed CPAN module installation guide.