in reply to FILE reading question.(closed filehandle) issue in script

Try replacing
`cd /opt/app1/osa/ebcp/5_5_4/log/`; open(FILE,'AppOsaEbcp1.log');
with
use strict; use warnings; open(FILE,'/opt/app1/osa/ebcp/5_5_4/log/AppOsaEbcp1.log') or die "open + failed: $!\n";

Replies are listed 'Best First'.
Re^2: FILE reading question.(closed filehandle) issue in script
by ajay.awachar (Acolyte) on Apr 16, 2009 at 23:21 UTC
    Hi,

    Thanks for your valuable suggestion. It worked
    perfectly fine.


    Thanks,

    Ajay