perl-warnings-regex-recompile-0.01-alt1.noarch.rpm


Advertisement

Description

perl-warnings-regex-recompile - Get Warnings about regex/pattern recompilation in Perl code

Property Value
Distribution ALT Linux Sisyphus
Repository Autoimports noarch
Package name perl-warnings-regex-recompile
Package version 0.01
Package release alt1
Package architecture noarch
Package type rpm
Installed size 13.36 KB
Download size 13.36 KB
Official Mirror ftp.altlinux.org
warnings::regex::recompile gives Warnings with the line numbers if any regex/patten is getting recompiled in Perl code .
It is Prgamatic module, so one can use it like this;
use warnings::regex::recompile;
Example,
my @regexps = qw( foo bar baz );
my @strings = qw( abc def ghi );
for my $string (@strings) {
for my $regex (@regexps) {
$string =~ /$regex/
}
}
In this case, warning will be like this,
[ WARNING : Pattern bar is getting re-compiled on 7 in strings.pl. You are advised to use qr// operator, which boost the speed/performance of your code. ]
[ WARNING : Pattern baz is getting re-compiled on 7 in strings.pl. You are advised to use qr// operator, which boost the speed/performance of your code. ]
[ WARNING : Pattern foo is getting re-compiled on 7 in strings.pl. You are advised to use qr// operator, which boost the speed/performance of your code. ]
This module also figure out the variable name if the variable has dynamic regex. for exa:
my $a = "abcdefghijklmnopqrstuvwxyz";
my $b = 1;
for (1..1000) {
_
_$b = ($b + 1) % 10;
_
_#print "b : $b\n";
__
_$a =~ s/$b a//;
}
In this case, warning will be like this,
[ WARNING : Variable $b is getting re-compiled on 19 in Time.pl. You are advised to use qr// operator, which boost the speed/performance of your code. ]

Alternatives

Package Version Architecture Repository
perl-warnings-regex-recompile - - -

Requires

Name Value
/usr/share/perl5 -
perl(re.pm) -
rpmlib(PayloadIsLzma) -

Provides

Name Value
perl(warnings/regex/recompile.pm) = 0.010
perl-warnings-regex-recompile = 0.01-alt1

Download

Type URL
Binary Package perl-warnings-regex-recompile-0.01-alt1.noarch.rpm
Source Package perl-warnings-regex-recompile-0.01-alt1.src.rpm

Install Howto

  1. Add the following line to /etc/apt/sources.list:
    
    rpm [Sisyphus] http://ftp.altlinux.org/pub/distributions/ALTLinux/autoimports/Sisyphus noarch autoimports
    rpm [Sisyphus] http://ftp.altlinux.org/pub/distributions/ALTLinux/autoimports/Sisyphus noarch autoimports
    
  2. Update the package index:
    # sudo apt-get update
  3. Install perl-warnings-regex-recompile rpm package:
    # sudo apt-get install perl-warnings-regex-recompile

Files

Path
/usr/share/doc/perl-warnings-regex-recompile-0.01/Changes
/usr/share/doc/perl-warnings-regex-recompile-0.01/README
/usr/share/perl5/warnings/
/usr/share/perl5/warnings/regex/recompile.pm

See Also

Package Description
perl-web-1.44-alt1.noarch.rpm A set of useful routines for many webworking purposes
perl-webchat-0.65-alt1.noarch.rpm support module for web chat script
perl-webchat-scripts-0.65-alt1.noarch.rpm webchat scripts
perl-webrobot-0.81-alt1.noarch.rpm Run Testplans
perl-webrobot-scripts-0.81-alt1.noarch.rpm webrobot scripts
perl-wikitext-perl-1.01-alt1.noarch.rpm Converting WikiText markup to other formats
perl-wikitext-perl-scripts-1.01-alt1.noarch.rpm wikitext-perl scripts
perl-win-0.03-alt1.noarch.rpm perl module win
perl-with-0.03-alt1.noarch.rpm Lexically call methods with a default object
perl-worky-0.20-alt1.noarch.rpm For when your code no worky
perl-xDT-Parser-1.00-alt1.noarch.rpm A Parser for xDT files
perl-xchar-0.2-alt1.noarch.rpm perl module xchar
perl-xchar-scripts-0.2-alt1.noarch.rpm xchar scripts
perl-xml-binddata-0.3.1-alt1.noarch.rpm Bind Perl data structures into XML
perl-xml-tag-0.4-alt1.noarch.rpm tag
Advertisement
Advertisement