Re: PL/Perl embedding string common elements - Mailing list pgsql-patches

From Tom Lane
Subject Re: PL/Perl embedding string common elements
Date
Msg-id 19128.1124591377@sss.pgh.pa.us
Whole thread Raw
In response to Re: PL/Perl embedding string common elements  (Andrew Dunstan <andrew@dunslane.net>)
Responses Re: PL/Perl embedding string common elements
List pgsql-patches
Andrew Dunstan <andrew@dunslane.net> writes:
> Every perl module whose author wants strict mode (and they all should)
> has to carry such a declaration, so in a sense we'd just be doing what
> perl itself does, and by trying to provide a global switch we're being
> unperlish.

You missed my point.  I wasn't objecting to having the global switch,
only to the fact that turning it on and off doesn't do what a rational
person would expect.  If it's going to advertise itself as USERSET then
it darn well ought to be settable.

The idea of loading the strict module unconditionally seems ok to me,
if we can work out a way of making it apply or not apply to individual
function compilations.  From what you were saying, perhaps it would
work to implicitly add "strict->import();" when use_strict is enabled?

            regards, tom lane

pgsql-patches by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: PL/Perl embedding string common elements
Next
From: Andrew Dunstan
Date:
Subject: Re: PL/Perl embedding string common elements