bazz
06-23-2008, 07:28 PM
OK, ticking along nicely today I have made progress. I think I need just one bit of help now.
in one loop I have this:
my constructs were wrong. :o
# compute state 'vacant' or 'busy'
my $room_condition = get_day_status($rooms{ $room->{room_id} }{'check_in_date'},
$rooms{ $room->{room_id} }{'check_out_date'},
$full_iso_date);
and the sub to which that is sent in this
should've been
# compute state 'vacant' or 'busy'
my $check_in = $rooms{ $room_id}{'check_in_date'};
my $check_out = $rooms{ $room_id}{'check_out_date'};
my $room_condition = get_day_status($check_in,
$check_out,
$full_iso_date);
sub get_day_status {
my $check_in = shift;
my $check_out = shift;
my $currdate = shift;
bazz
in one loop I have this:
my constructs were wrong. :o
# compute state 'vacant' or 'busy'
my $room_condition = get_day_status($rooms{ $room->{room_id} }{'check_in_date'},
$rooms{ $room->{room_id} }{'check_out_date'},
$full_iso_date);
and the sub to which that is sent in this
should've been
# compute state 'vacant' or 'busy'
my $check_in = $rooms{ $room_id}{'check_in_date'};
my $check_out = $rooms{ $room_id}{'check_out_date'};
my $room_condition = get_day_status($check_in,
$check_out,
$full_iso_date);
sub get_day_status {
my $check_in = shift;
my $check_out = shift;
my $currdate = shift;
bazz