Re: subroutines only return once

2012-07-29 Thread lina
On Sun, Jul 29, 2012 at 11:19 PM, Andy Bach wrote: > On Sun, Jul 29, 2012 at 10:01 AM, lina wrote: >> Strangely, it only substituted once, but not for the later once. >> Thanks ahead for your suggestions, I don't know why, > > Not exactly sure what you're up to - but you only open fh1 once - so >

Re: subroutines only return once

2012-07-29 Thread Andy Bach
On Sun, Jul 29, 2012 at 10:01 AM, lina wrote: > Strangely, it only substituted once, but not for the later once. > Thanks ahead for your suggestions, I don't know why, Not exactly sure what you're up to - but you only open fh1 once - so the inner while in your sub is going to read until eof and c