RE: array of variables

2001-05-31 Thread Paul
--- "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

RE: array of variables

2001-05-31 Thread Hill, Ronald
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

Re: array of variables

2001-05-31 Thread Paul
--- 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,

array of variables

2001-05-31 Thread Nichole Bialczyk
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