From: Tom K. <TKo...@ea...> - 2000-03-06 05:24:41
|
Hi Guys, I've been having two problems with MH and was hoping I could get some help. One problem is that the "time_greater_than" function is always true and the "time_less_than" function is always false. For example the code below always says "It doesn't work". my $tod; $tod = "It doesn't work"; if (time_less_than"23:59"){$tod = "It works";} if ($New_Minute) {speak $tod;} I tried a number of variations of time expressions. Any thoughts on what is going wrong? For a PA system I have an old 100W per channel stereo amp. I have four 20W speakers in series on each of the two channels. (For the relatively low audio levels I use, there is no detectable clipping. ) I have relays that for each location switch in either one of the eight speakers or one of the eight 20W 8 ohm load balancing resistors, i.e. for no sound there are four 8 ohm resistors in series on each channel. My difficulty is with the pa_control.pl program. I get a warning about all of the elements of the array: my @speakers = ($pa_study, $pa_family, $pa_shop, $pa_nick, $pa_bedroom, $pa_zack, $pa_living); The warning are: "Global symbol "$pa_study" requires explicit package name at (eval 37) line xx" "Global symbol "$pa_family" requires explicit package name at (eval 37) line xx" . . Global symbol "ref" requires explicit package name at (eval 37) line xx" Then I get the killer error message "compilation aborted at eval 37 line 2163" else{ no strict 'refs': line 2163 ${"pa_$room"}->{while_speaking} = 1; } Note that the error message says "pa_$room" and not" $pa_room". Anybody have any thoughts? Thanks, Tom |