Re: Minimum Perl version?
- From
- Tor 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