Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Error opening file handle within while loop

by RichardK (Parson)
on Feb 10, 2016 at 14:09 UTC ( #1154867=note: print w/replies, xml ) Need Help??


in reply to Error opening file handle within while loop

This is always worth a read Basic debugging checklist as it contains lots of useful suggestions.

BTW, I'm surprised that your code works, you write to m2.maf & then ask phastCons to read it, but you haven't closed the file. It may be better to close it first so that any buffering gets flushed, and you'll be sure that the program gets to see all the data.

  • Comment on Re: Error opening file handle within while loop

Replies are listed 'Best First'.
Re^2: Error opening file handle within while loop
by rjc33 (Sexton) on Feb 11, 2016 at 09:08 UTC
    Hi, thanks for the advice, it does seem to work as expected but I hadn't considered this at all - have now added!

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (6)
As of 2020-06-04 18:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you really want to know if there is extraterrestrial life?



    Results (35 votes). Check out past polls.

    Notices?