kiranp has asked for the wisdom of the Perl Monks concerning the following question:

Hi Monks, i Have written one pragmatic module

Module throws warnings with the line numbers if the pattern/regex getting recompiled in the Perl code

it also figures out the variable name if it is getting interpolated and has dynamic value

How about Antiregex::recompile??

Thanks

Kiran Pawar

  • Comment on Please, suggest good name for my Pragmatic module.

Replies are listed 'Best First'.
Re: Please, suggest good name for my Pragmatic module.
by tobyink (Canon) on Sep 06, 2014 at 06:59 UTC

    Probably something in one of the re::, Regexp::, or warnings:: namespaces? That's certainly where I'd expect to find such a module.

    Regexp-related warnings are enabled using:

    use warnings 'regexp';

    ... so perhaps yours could be warnings::regexp::recompile?

      Yes... *warnings::regexp::recompile* sounds good as the module is about throwing warnings if any regex is getting recompiled

Re: Please, suggest good name for my Pragmatic module.
by Corion (Patriarch) on Sep 06, 2014 at 06:51 UTC

    Maybe you can show us the documentation of the module, or maybe the synopsis section so we can get a more practical description than your two lines here?

    Maybe warnings::regexinterpolation?