Re: struct as an argument of a function

2004-02-22 Thread R. Joseph Newton
David le Blanc wrote: > On [sic] place it is necessary is when > > dereferencing a function ref [or it could be that I just > > haven't found a way to > > accomplish that task without it.] ... > > $coderef->(); Coolness. ... or shall I say "duh"? So--any examples of where the & *would*

RE: struct as an argument of a function

2004-02-22 Thread David le Blanc
> > I was wondering when to use this &? > > Not very often, really. I used it recently, and I think that > was the first time > in many thousands of function calls. On place it is necessary is when > dereferencing a function ref [or it could be that I just > haven't found a way to > accomplish

Re: struct as an argument of a function

2004-02-22 Thread R. Joseph Newton
Öznur Tastan wrote: > > > &print_rusage($t); > > > > Don't do this. The & operator is needed only in special cicumstances > > I was wondering when to use this &? Not very often, really. I used it recently, and I think that was the first time in many thousands of function calls. On place it

Re: struct as an argument of a function

2004-02-22 Thread Rob Dixon
Öznur tastan wrote: > > I am trying to use struct as an argument of a function. > In the piece of code I try to use $t as a parameter of the print_usage function but > it gives the error: > > Can't call method "ru_stime" without a package or object reference at str.txt l > ne 28. > > Could anyone

Re: struct as an argument of a function

2004-02-22 Thread Öznur Tastan
> Öznur Taþtan wrote: > > > Hi, > > I am trying to use struct as an argument of a function. > > In the piece of code I try to use $t as a parameter of the print_usage function but > > it gives the error: > > > > Can't call method "ru_stime" without a package or object reference at str.txt l >

Re: struct as an argument of a function

2004-02-22 Thread R. Joseph Newton
Öznur Taþtan wrote: > Hi, > I am trying to use struct as an argument of a function. > In the piece of code I try to use $t as a parameter of the print_usage function but > it gives the error: > > Can't call method "ru_stime" without a package or object reference at str.txt l > ne 28. > > Could an