#!/usr/local/bin/perl sub trial { open (LOGFILE, 'C:\Users\out.txt'); trial(); } trial();
Please ignore that it will go into an endless loop.
Will the LOGFILE file LOGFILE local or private to the method? If not, how can I make it private / local? I know mine . But I do not know how to use it in File Handles.
source share