From: Peter L. <l-b...@pg...> - 2005-01-26 14:39:11
|
pe...@tu... wrote: Hi, I setup this in my config.pl: $Conf{WakeupSchedule} = [23..6]; There's the problem. The double-dot is a perl construct, which expands to a list of integers from the first number to the last number. So if you write 1..10 you get a list containing 1,2,3,4,5,6,7,8,9 and 10. Here you have written 23..6, which evaluates to an empty list, because the second number is smaller than the first. I can see why this might cause problems! Change it to read $Conf{WakeupSchedule} = [23,0..6]; and it should work fine. For reference, if you want to test things, a way of doing this is: $ perl -e 'print $_,"," for (6..23); print "\n";' 6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23, $ perl -e 'print $_,"," for (23..6); print "\n";' $ perl -e 'print $_,"," for (23,0..7); print "\n";' 23,0,1,2,3,4,5,6,7, $ Peter |