NAME
String::Mask - The great new String::Mask!
VERSION
Version 0.01
SYNOPSIS
Quick summary of what the module does.
use String::Mask qw/mask/;
mask('thisusedtobeanemail@gmail.com'); # 'thisusedtobean*****@*****.***'
mask('thisusedtobeanemail@gmail.com', 'end'); # '***************mail@gmail.com'
mask('9991234567', 'middle', 4, '_'); # '___1234___'
EXPORT
mask
This function accepts 4 arguments:
mask($string, $position, $length, $char);
- string
-
The text that you like to mask.
- position
-
The position you would like to be visible. Currently you have three options start, middle or end. The default is start.
- length
-
The number of characters that should remain visible. The default is half the length of the passed string.
- mask character
-
The mask character that will replace any masked text. The default is *.
AUTHOR
LNATION, <email at lnation.org>
BUGS
Please report any bugs or feature requests to bug-string-mask at rt.cpan.org
, or through the web interface at https://rt.cpan.org/NoAuth/ReportBug.html?Queue=String-Mask. 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 String::Mask
You can also look for information at:
RT: CPAN's request tracker (report bugs here)
CPAN Ratings
Search CPAN
ACKNOWLEDGEMENTS
LICENSE AND COPYRIGHT
This software is Copyright (c) 2020 by LNATION.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)