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..?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Can I write and close a file in a subroutine?
by davido (Cardinal) on Nov 15, 2012 at 07:36 UTC | |
Re: Can I write and close a file in a subroutine?
by choroba (Cardinal) on Nov 15, 2012 at 08:18 UTC |
Back to
Seekers of Perl Wisdom