Oops, I didn't see that you needed array context... it seems to return
nothing when
called in scalar context, which is slightly weird but not contrary to the docs.

Britton

On Thu, Jul 1, 2010 at 5:21 AM, James Vega <james...@debian.org> wrote:
> On Wed, Jun 30, 2010 at 04:52:17PM -0700, Britton Leo Kerin wrote:
>> This fragment:
>>
>> our $curbuf;
>> my $buf_header = $curbuf->Get( 1 .. 3 );
>>
>> Doesn't work as described in the documentation, I end up with $buf_header 
>> empty
>> (with a buffer that does contain these lines).
>
> “my @buf_header = $curbuf->Get(1 .. 3);” works fine.  Were you expecting
> $buf_header to be 3 due to the list being used in scalar context?
>
> --
> James
> GPG Key: 1024D/61326D40 2003-09-02 James Vega <james...@debian.org>
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (GNU/Linux)
>
> iEYEAREDAAYFAkwsiD0ACgkQDb3UpmEybUCL+wCfd8K82OOQ/MjsL+zDefmHklUr
> GkEAn2HKcX3ekZuLHhJhlB5ON4J60Foo
> =vTEx
> -----END PGP SIGNATURE-----
>
>



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to