in reply to variable in perl
The $$ is a prototype; it specifies that the function WriteLog takes two scalars as arguments (see prototypes in perlsub).
In the expression @$logtext, $logtext is actually a reference to an array, and @$logtext dereferences this reference to access this array. ref is an operator that, when given a reference as argument, returns the type of reference it is (ref). To better understand ref and @$logtext see perlreftut.
the lowliest monk
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: variable in perl
by sveera (Initiate) on Jun 17, 2005 at 18:01 UTC |