perlancar

NAME

Parse::VarName - Routines to parse variable name

VERSION

This document describes version 0.03 of Parse::VarName (from Perl distribution Parse-VarName), released on 2016-06-14.

FUNCTIONS

split_varname_words(%args) -> any

Split words found in variable name.

Try to split words found in a variable name, e.g. mTime -> [m, Time], foo1Bar -> [foo, 1, Bar], Foo::barBaz::Qux2 -> [Foo, bar, Baz, Qux, 2].

This function is not exported by default, but exportable.

Arguments ('*' denotes required arguments):

  • include_sep => bool (default: 0)

    Whether to include non-alphanum separator in result.

    For example, under include_sep=true, Foo::barBaz::Qux2 -> [Foo, ::, bar, Baz, ::, Qux, 2].

  • varname* => str

Return value: (any)

HOMEPAGE

Please visit the project's homepage at https://metacpan.org/release/Parse-VarName.

SOURCE

Source repository is at https://github.com/perlancar/perl-Parse-VarName.

BUGS

Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=Parse-VarName

When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.

AUTHOR

perlancar <perlancar@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2016 by perlancar@cpan.org.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.