What about Perl autodie?

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема What about Perl autodie?
Дата
Msg-id 88b7d4f2-46d9-4cc7-b1f7-613c90f9a76a@eisentraut.org
обсуждение исходный текст
Ответы Re: What about Perl autodie?  (Greg Sabino Mullane <htamfids@gmail.com>)
Список pgsql-hackers
I came across the Perl autodie pragma 
(https://perldoc.perl.org/autodie).  This seems pretty useful; is this 
something we can use?  Any drawbacks?  Any minimum Perl version?

Attached is a sample patch of the kind of thing I'd be interested in. 
The existing error handling of file operations in Perl is pretty 
cumbersome, and this would simplify that.

Btw., here is a sample error message from autodie:

Can't open '../src/include/mb/pg_wchar.h' for reading: 'No such file or 
directory' at ../src/include/catalog/../../backend/catalog/genbki.pl 
line 391

which seems as good or better than the stuff we produce manually.
Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Amit Kapila
Дата:
Сообщение: Re: Commitfest 2024-01 first week update
Следующее
От: Daniel Gustafsson
Дата:
Сообщение: Re: Commitfest 2024-01 first week update