Re: Scalar reference, pointer to pointer meaning

2002-12-29 Thread Rob Dixon
> Using VerQueryValue for file version information on Windows > > > What I expected to find in $lplpBuffer is instead being > > written to an unused part of the full buffer ($lpFullBuffer). As far as I know, Windows never hands back a newly-allocated data buffer to you. The idea is that you call G

Re: Scalar reference, pointer to pointer meaning

2002-12-29 Thread Gary Hawkins
Using VerQueryValue for file version information on Windows > What I expected to find in $lplpBuffer is instead being > written to an unused part of the full buffer ($lpFullBuffer). Got it. Prints like so: c:\windows\system32\version.dll CompanyName Microsoft Corporation

RE: Scalar reference, pointer to pointer meaning

2002-12-28 Thread Gary Hawkins
-- > From: Rob Dixon [mailto:[EMAIL PROTECTED]] > Sent: Saturday, December 28, 2002 4:13 AM > To: [EMAIL PROTECTED] > Subject: Re: Scalar reference, pointer to pointer meaning > > Hi Gary > > You're suffering a little C-lag. The backslash performs roughly the same >

Re: Scalar reference, pointer to pointer meaning

2002-12-28 Thread Rob Dixon
Hi Gary You're suffering a little C-lag. The backslash performs roughly the same function as the ampersand in C, while dereferencing requires knowing the type of the reference, which can be discovered using the ref() function. my (@array, $scalar, $lp); $lp = \@array; print ref $lp;