App::Reg - reg RegExp debugger
use App::Reg; # NOT using qr// is recommended unless you don't want compilation # messages (because qr// is compiled before my module has chance # to load re module). reg 'abc', 'a.c';
App::Reg is the module that contains logic of reg utility. It contains one method, reg.
reg
All functions are exported using Exporter. If you don't want this (but why you would use this module then) try importing it using empty list of functions.
use App::Reg ();
The only function in this module. It matches $string using $pattern and shows Perl's regular expression debugger. It supports two options in hash %options.
$string
$pattern
%options
Returns the matches when called in list context with global option, number of matches otherwise.
global
When set to true, use re is called with debugcolor instead of debug.
use re
debugcolor
debug
Sets the /g property in RegExp and matches RegExp in list context.
/g
Konrad Borowski <glitchmr@myopera.com>
This software is copyright (c) 2012 by Konrad Borowski.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install App::Reg, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::Reg
CPAN shell
perl -MCPAN -e shell install App::Reg
For more information on module installation, please visit the detailed CPAN module installation guide.