Re: Minimum Perl version?
- From
Alex Riesen <raa.lkml@gmail.com>
- Date
- Sep 24, 2010, 12:30 UTC
- Message-ID
- <AANLkTimjMkJGw+Dh_x+TQUscC1tOV6kW=a6_57f2snnB@mail.gmail.com>
- In-Reply-To
- <AANLkTiknAw5DwEDHQVJs96gEShky3rLYjyqpQy3MY=8Z@mail.gmail.com>
On Fri, Sep 24, 2010 at 13:22, Tor Arntsen <tor@spacetec.no> wrote:
Show 13 quoted lines
>> If that's the case (I don't have a 5.6 here to do archeology on) then
>> git add -p never worked in 5.6. That was added in 5cde71d6 when it was
>> introduced in 2006:
>>
>> +sub run_cmd_pipe {
>> + my $fh = undef;
>> + open($fh, '-|', @_) or die;
>> + return <$fh>;
>> +}
>>
>
> Can't use an undefined value as filehandle reference at test-pl.pl line 5.
> (that's the 'open' line)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?