NAME
Basic::Coercion::XS - basic coercions
VERSION
Version 0.08
SYNOPSIS
Quick summary of what the module does.
Perhaps a little code snippet.
use Basic::Coercion::XS qw(StrToArray);
my $type = StrToArray();
my $arrayref = $type->("a b\tc\nd");
# $arrayref is ['a', 'b', 'c', 'd']
$type = StrToArray(by => qr/,/);
$arrayref = $type->("a,b,c");
# $arrayref is ['a', 'b', 'c']
EXPORT
None by default, but you can export specific functions:
use Basic::Coercion::XS qw(StrToArray);
StrToArray
This function creates a coercion type that converts a string into an array reference.
StrToArray(by => $regex_string);
StrToHash
This function creates a coercion type that converts a string into a hash reference.
StrToHash->by($regex_string);
AUTHOR
LNATION, <email at lnation.org>
BUGS
Please report any bugs or feature requests to bug-basic-coercion-xs at rt.cpan.org
, or through the web interface at https://rt.cpan.org/NoAuth/ReportBug.html?Queue=Basic-Coercion-XS. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
SUPPORT
You can find documentation for this module with the perldoc command.
perldoc Basic::Coercion::XS
You can also look for information at:
RT: CPAN's request tracker (report bugs here)
Search CPAN
ACKNOWLEDGEMENTS
LICENSE AND COPYRIGHT
This software is Copyright (c) 2025 by LNATION.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)