Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Performance of assambled regex

by Not_a_Number (Prior)
on Jul 26, 2015 at 18:22 UTC ( [id://1136363]=note: print w/replies, xml ) Need Help??


in reply to Performance of assambled regex

Not an answer to your question, but there is another problem in your code. This line:

open my $fh_big_file, '<', $ARGV[0] || die;

and the following line are buggy for precedence reasons. Use either parentheses:

open( my $fh_big_file, '<', $ARGV[0] ) || die;

or the low precedence or operator;

open my $fh_big_file, '<', $ARGV[0] or die;

Proof:

# There's no file called 'rabbit' in my cwd open my $fh, '<', 'rabbit' || die; print "Still alive!\n"; __END__ Still alive!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (8)
As of 2024-03-28 15:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found