On 12/12/07, Henrik Nielsen <[EMAIL PROTECTED]> wrote:

> Whats with the \$t in this sub?
> sub timestamp { my $t = localtime; \$t }
>
> And what does this do?
> sub timestamp { my $t = localtime; }

The localtime function is documented in the perlfunc manpage. It's
being used here in a scalar context. References are covered in the
perlreftut manpage, among others. Is that what you're looking for?

Cheers!

--Tom Phoenix
Stonehenge Perl Training

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to