Sub::Multi::Tiny::Util - Internal utilities for Sub::Multi::Tiny
No user-serviceable parts inside. See Sub::Multi::Tiny.
As "croak" in Carp, but lazily loads Carp.
As "carp" in Carp, but lazily loads Carp.
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.
Chris White <cxw@cpan.org>
Copyright (C) 2019 Chris White <cxw@cpan.org>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Sub::Multi::Tiny, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Sub::Multi::Tiny
CPAN shell
perl -MCPAN -e shell install Sub::Multi::Tiny
For more information on module installation, please visit the detailed CPAN module installation guide.