Re: File Handles in subroutines

2003-06-25 Thread John W. Krahn
Kevin Pfeiffer wrote: > > Hi John, Hello, > In article <[EMAIL PROTECTED]>, John W. Krahn wrote: > [...] > > perldoc -q filehandle > > > > [snip] > > Hmmm... lots to digest here. One question. An example mentioned is: > > >As of perl5.6, open() autovivifies file and direcĀ­ >

Re: File Handles in subroutines

2003-06-25 Thread Kevin Pfeiffer
Hi John, In article <[EMAIL PROTECTED]>, John W. Krahn wrote: [...] > perldoc -q filehandle > > Found in /usr/lib/perl5/5.6.0/pod/perlfaq5.pod >How do I flush/unbuffer an output filehandle? Why must I >do this? > >How can I make a filehandle local to a subroutine? How d

Re: File Handles in subroutines

2003-06-25 Thread John W. Krahn
Joshua Scott wrote: > > What do I need to do in order to use a filehandle that was opened earlier in > a program within a subroutine? perldoc -q filehandle Found in /usr/lib/perl5/5.6.0/pod/perlfaq5.pod How do I flush/unbuffer an output filehandle? Why must I do this? How

RE: File Handles in subroutines

2003-06-25 Thread Kipp, James
> > > What do I need to do in order to use a filehandle that was > opened earlier in > a program within a subroutine? I've included an example of > the code I have > that is not doing what I would like. Basically, I never get > any output to > the file. If I change it so that it doesn't use

Re: File Handles in subroutines

2003-06-25 Thread Sudarshan Raghavan
Scott, Joshua wrote: What do I need to do in order to use a filehandle that was opened earlier in a program within a subroutine? I've included an example of the code I have that is not doing what I would like. Basically, I never get any output to the file. If I change it so that it doesn't use

RE: File Handles in subroutines

2003-06-25 Thread Gupta, Sharad
Did open ever succeeded?? Check with: open(FILE,">>$logfile") or die "$!"; -sharad -Original Message- From: Scott, Joshua [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 24, 2003 11:13 PM To: [EMAIL PROTECTED] Subject: File Handles in subroutines What do I need to do in order t