Re: Variable passing to functions like read() / sysread() etc

2008-09-20 Thread Peter Scott
On Fri, 19 Sep 2008 06:58:33 -0700, wikenfalk wrote: > When using read/sysread you pass variables like $fo->sysread($buf, > $buflen), and the data is returned in buf. > This is magic to me, normally you ought to call sysread like $fo- >>sysread(\$buf,$buflen), passing a reference/pointer to the bu

Re: Variable passing to functions like read() / sysread() etc

2008-09-19 Thread Mr. Shawn H. Corey
On Fri, 2008-09-19 at 06:58 -0700, [EMAIL PROTECTED] wrote: > Hi > > When using read/sysread you pass variables like $fo->sysread($buf, > $buflen), and the data is returned in buf. > This is magic to me, normally you ought to call sysread like $fo- > >sysread(\$buf,$buflen), passing a reference/p

RE: Variable passing to functions like read() / sysread() etc

2008-09-19 Thread Thomas Bätzler
Hi, <[EMAIL PROTECTED]> wrote: > When using read/sysread you pass variables like > $fo->sysread($buf, $buflen), and the data is returned in buf. > This is magic to me, normally you ought to call sysread like $fo- > >sysread(\$buf,$buflen), passing a reference/pointer to the buffer. > > Apparan

Variable passing to functions like read() / sysread() etc

2008-09-19 Thread wikenfalk
Hi When using read/sysread you pass variables like $fo->sysread($buf, $buflen), and the data is returned in buf. This is magic to me, normally you ought to call sysread like $fo- >sysread(\$buf,$buflen), passing a reference/pointer to the buffer. Apparantly here's some trick, although the variab