git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Minimum Perl version?

From
TATor Arntsen <tor@spacetec.no>
Date
Sep 24, 2010, 12:42 UTC
Message-ID
<AANLkTi=Q-xCu4TND877YBNOZXL3rBeU9fY6YY_9rA9j=@mail.gmail.com>
In-Reply-To
<AANLkTimjMkJGw+Dh_x+TQUscC1tOV6kW=a6_57f2snnB@mail.gmail.com>
On Fri, Sep 24, 2010 at 14:30, Alex Riesen <raa.lkml@gmail.com> wrote:
> Maybe it is not the syntax (the separate argument for open mode
> in this case), but the initialization of $fh to 'undef' which is the
> problem here?

That's correct, I believe, but I also think the underlying problem here is having support for dynamic filehandles which can be exported. You could assign something to $fh and then call open(), but that won't give you what the code asks for.

It should in principle be possible to replace
 my $fh = undef;
 open ($fh..)
with
 use FileHandle;
 my $fh = new FileHandle (...)
etc.
which works also on Perl 5.6.

When I first ran into this I did a little bit of hacking in that direction, but I didn't make a full effort and didn't get it to work - in the meantime the customer system which required perl 5.6 (for performance reasons) migrated to a later version of AIX and I was then free to upgrade the perl version to 5.8 on this (my maintance copy of their system), in other words I wasn't affected by the problem anymore and abandoned what I had started working on.

-Tor
Previous: Alex Riesen
Message 10 of 10 in “Minimum Perl version?”
  1. TaitSep 24, 2010
  2. Ævar Arnfjörð BjarmasonSep 24, 2010
  3. TaitSep 24, 2010
  4. Ævar Arnfjörð BjarmasonSep 24, 2010
  5. Andreas EricssonSep 26, 2010
  6. Tor ArntsenSep 24, 2010
  7. Ævar Arnfjörð BjarmasonSep 24, 2010
  8. Tor ArntsenSep 24, 2010
  9. Alex RiesenSep 24, 2010
  10. Tor ArntsenSep 24, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.