Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Could I make file handle only accessible in Sub function?

Status
Not open for further replies.

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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top