stewchicken
Technical User
- Nov 4, 2008
- 1
Hello
it seem file handle could be accessed in different sub functions,
Could i make it only accessible in one sub function?
sofar I tried below way. seems ok...
sub funsub () {
$config = XML::Simple->new()->XMLin('config.xml');
my $logfile = &createLog();
my $LOGFILEHANDLE='';
open( LOGFILEHANDLE, ">>$logfile" );
}
Rgds
it seem file handle could be accessed in different sub functions,
Could i make it only accessible in one sub function?
sofar I tried below way. seems ok...
sub funsub () {
$config = XML::Simple->new()->XMLin('config.xml');
my $logfile = &createLog();
my $LOGFILEHANDLE='';
open( LOGFILEHANDLE, ">>$logfile" );
}
Rgds