Re: Minimum Perl version?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Sep 24, 2010 at 13:22, Tor Arntsen <tor@xxxxxxxxxxx> wrote:
>> 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?
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]