Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Error opening file handle within while loop

by RichardK (Parson)
on Feb 10, 2016 at 14:09 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1154867]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2024-04-25 15:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found