Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^4: Perl module search engine

by moritz (Cardinal)
on Jun 15, 2008 at 21:48 UTC ( #692183=note: print w/replies, xml ) Need Help??


in reply to Re^3: Perl module search engine
in thread Perl module search engine

Could you please provide an example?
perl -wle '$_="abc" x $ARGV[0]; m/(((.){1,20}.+){1,34}){2,4}[d]/' 10

And now tell me how long your perl takes to find out that this regex fails ;-)
$ARGV[0]time in s
30.003
40.016
50.167
62.0
723.8
8146

I wasn't patient enough to see how long it takes to match with $ARGV[0] == 9, or in other words against 27 characters of input.

Replies are listed 'Best First'.
Re^5: Perl module search engine
by jacques (Priest) on Jun 15, 2008 at 22:17 UTC
    Yes, it's a problem. I just tested your example. I am going to have to figure out a way to sniff it out and upload a new version. Maybe I should just not allow regexps? Thanks for the info.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://692183]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (8)
As of 2019-12-06 21:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Strict and warnings: which comes first?



    Results (159 votes). Check out past polls.

    Notices?