$$ is a prototype, described in perldoc perlsub.
ref is described in perldoc -f ref, and is used here to find out if $logtext is a scalar or a reference to an array.
@$ dereferences the array reference (thus treating it as a regular array).
In reply to Re: variable in perl
by dorward
in thread variable in perl
by sveera
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |