Loading ...
Sorry, an error occurred while loading the content.

Problem using tie with Apache::RequestRec in mod_perl/1.999.21

Expand Messages
  • J Matisse Enzer
    I am using a module that wants to tie to the Apache::RequestRec The following code works in mod_perl/1.99_12 but does not seem to work in mod_perl/1.999.21 - I
    Message 1 of 3 , Feb 2, 2005
    View Source
    • 0 Attachment
      I am using a module that wants to tie to the Apache::RequestRec

      The following code works in mod_perl/1.99_12 but does not seem to work
      in mod_perl/1.999.21 - I simply get no output (no errors either):

      tie *FILE => $r;
      binmode(*FILE);

      Server info:
      Apache/2.0.52 (Unix) mod_ssl/2.0.52 OpenSSL/0.9.7d mod_perl/1.999.21
      Perl/v5.8.1

      -------------------------------------------------------
      Matisse Enzer <matisse@...>
      http://www.matisse.net/.
      415-225-6703 (work/cellphone)
      415-401-8325 (home)
    • Stas Bekman
      ... Please define does not seem to work . Preferrably using a simple test case, that shows how it supposed to work. --
      Message 2 of 3 , Feb 2, 2005
      View Source
      • 0 Attachment
        J Matisse Enzer wrote:
        > I am using a module that wants to tie to the Apache::RequestRec
        >
        > The following code works in mod_perl/1.99_12 but does not seem to work
        > in mod_perl/1.999.21 - I simply get no output (no errors either):
        >
        > tie *FILE => $r;
        > binmode(*FILE);
        >
        > Server info:
        > Apache/2.0.52 (Unix) mod_ssl/2.0.52 OpenSSL/0.9.7d mod_perl/1.999.21
        > Perl/v5.8.1

        Please define 'does not seem to work'. Preferrably using a simple test
        case, that shows how it supposed to work.


        --
        __________________________________________________________________
        Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
        http://stason.org/ mod_perl Guide ---> http://perl.apache.org
        mailto:stas@... http://use.perl.org http://apacheweek.com
        http://modperlbook.org http://apache.org http://ticketmaster.com
      • J Matisse Enzer
        Problem solved. You were quite right to ask for a test case. In trying to create a test case I found that a module buried deep in my application was messing up
        Message 3 of 3 , Feb 3, 2005
        View Source
        • 0 Attachment
          Problem solved.

          You were quite right to ask for a test case.
          In trying to create a test case I found that a module buried deep in my
          application was messing up the file handle, and upgrading to a new
          version of that module (OLE::Storage_Lite) solved the problem. I did
          not actually figure out what the older version of OLE::Storage_Lite was
          doing wrong. :-(

          -Matisse

          On Feb 2, 2005, at 5:21 PM, Stas Bekman wrote:

          > J Matisse Enzer wrote:
          >> I am using a module that wants to tie to the Apache::RequestRec
          >> The following code works in mod_perl/1.99_12 but does not seem to
          >> work in mod_perl/1.999.21 - I simply get no output (no errors
          >> either):
          >> tie *FILE => $r;
          >> binmode(*FILE);
          >> Server info:
          >> Apache/2.0.52 (Unix) mod_ssl/2.0.52 OpenSSL/0.9.7d mod_perl/1.999.21
          >> Perl/v5.8.1
          >
          > Please define 'does not seem to work'. Preferrably using a simple test
          > case, that shows how it supposed to work.
          >
          >
          > --
          > __________________________________________________________________
          > Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
          > http://stason.org/ mod_perl Guide ---> http://perl.apache.org
          > mailto:stas@... http://use.perl.org http://apacheweek.com
          > http://modperlbook.org http://apache.org http://ticketmaster.com
          >

          -------------------------------------------------------
          Matisse Enzer <matisse@...>
          http://www.matisse.net/.
          415-225-6703 (work/cellphone)
          415-401-8325 (home)
        Your message has been successfully submitted and would be delivered to recipients shortly.