aartist has asked for the wisdom of the Perl Monks concerning the following question:
with open("welcome.txt") as file:There is a context manager magic to handle failure in python. How to achieve similar thing in Perl ?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Opening a file in Perl
by pryrt (Abbot) on Aug 14, 2020 at 19:42 UTC | |
by jcb (Parson) on Aug 14, 2020 at 23:29 UTC | |
Re: Opening a file in Perl
by stevieb (Canon) on Aug 14, 2020 at 20:36 UTC | |
Re: Opening a file in Perl
by perlfan (Parson) on Aug 15, 2020 at 07:18 UTC |