so i've discovered the wonders of use strict; (it wasn't in my tutorial) 
and i'm trying to declare this array:

my @timelog($sec,$min,$hour,$mday,$mon,$year) =
localtime(time)[0,1,2,3,4,5];

and i get the error:

Global symbol "$sec" requires explicit package name
etc
etc

i tried putting 'my' before each variable, but it just doesn't like me. i 
can't find anything on the web either. sorry to bother everyone with such 
a trivial question.

try
use vars qw($sec $min $hour $mday $mon $year);

Ron

Reply via email to