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*
> > 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
Ö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
Ö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
> Ö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
>
Ö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