in reply to Re: STDIN typeglob
in thread STDIN typeglob

Which of those methods does your module use?

I reads STDIN like this...

read(STDIN, $vars{'payload'}, $ENV{'CONTENT_LENGTH'});

But following advice given elsewhere, that is deprecated now and it is up to the user to read STDIN or wherever else they want to get the data from. They then pass that to the constructor. That is still there as a fallback - for now...

Replies are listed 'Best First'.
Re^3: STDIN typeglob
by afoken (Chancellor) on Jun 18, 2023 at 18:35 UTC
    I reads STDIN [...] but following advice given elsewhere, that is deprecated now [...] That is still there as a fallback - for now...

    Why do you keep that around? Has your module already attracted a relevant number of users? If so, that's nice (stable API), and you should IMHO document a date after which you will remove reading STDIN. If not, just drop it completely.

    Alexander

    --
    Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)
      Has your module already attracted a relevant number of users?

      Other than the number of people who like it on CPAN, how would I know?

        Guessing? Number of bugs filed, number of support questions, number of days your package is available on CPAN.

        If all numbers are close to 0, the number of users is probably close to 1 (i.e. you).

        Alexander

        --
        Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)