in reply to Weird bitmap output

You have a pattern matching problem in this code:
my ($day, $from, $to) = ($day_hours =~ /([A-Za-z]+).*(\d+)-(\d+)/);
Matching "Mon 11-2", the ".*" matches " 1", so your interval is from 1 to 2. Don't use ".*" here. "\s+" would be better.

Replies are listed 'Best First'.
Re^2: Weird bitmap output
by insaniac (Friar) on Oct 20, 2004 at 15:16 UTC
    how obvious! thanks tall_man, you enlightened my day :-D
    --
    to ask a question is a moment of shame
    to remain ignorant is a lifelong shame