Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^2: Open Filehandle once

by kcott (Archbishop)
on Aug 25, 2017 at 02:06 UTC ( [id://1197982]=note: print w/replies, xml ) Need Help??


in reply to Re: Open Filehandle once
in thread Open Filehandle once

"... only two file-handles ... potential number of file-handles is in fact indeterminate ... "

The OP's opening remarks clearly state:

"My Script does a lot of "if"query's. ... This happens in my script 20 times."

He then went on to clearly indicate:

"An example for my Script ..."

In that example, he showed two if blocks. This is a good thing: he probably would have received some negative comments had he posted all twenty if blocks.

"Only the OP will know for sure ..."

He does know for sure! He's clearly stated 20.

— Ken

Replies are listed 'Best First'.
Re^3: Open Filehandle once
by Anonymous Monk on Aug 25, 2017 at 02:39 UTC
    The first if chooses between path1 and path2; so does the second. Is path1 the same in every if block, or should the second block have said path3 and path4? It's not clear.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (7)
As of 2024-04-18 13:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found