Welcome to the Monastery | |
PerlMonks |
Can I write and close a file in a subroutine?by Anonymous Monk |
on Nov 15, 2012 at 07:26 UTC ( [id://1003947]=perlquestion: print w/replies, xml ) | Need Help?? |
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question: Hello Monks, I have a question regarding subroutine. If I opened a file(not closed now) and doing some writings and these is a case to go to a subroutine and check. So I want to check for that case and if it is positive need to write something also to the file and there itself need to close, without exiting from the subroutine. Is it possible, or I need to go out of the subroutine to do that..?
Back to
Seekers of Perl Wisdom
|
|