--- "Hill, Ronald" <[EMAIL PROTECTED]> wrote:
> try
> use vars qw($sec $min $hour $mday $mon $year);
This will satisfy strict, but in case anyone wonders, these are still
globals. If you do this in the main body of your program, these are
actually $main::sec, $main::min, ... $main::year.
That
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' be
--- Nichole Bialczyk <[EMAIL PROTECTED]> wrote:
> so i've discovered the wonders of use strict; (it wasn't in my
> tutorial) and i'm trying to declare this array:
It'll cause a little headache now, and save you a LOT later. =o)
-w and strict are your friends! lol!
> my @timelog($sec,$min,$hour,
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' be