Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
($day, $start and $end are in this case are predefined. In the script they would be defined from values taken from a file)my @day; my @night; my @ip; my $day = "someday"; my $start "some start time"; my $start "some end time"; foreach my $task((qw/day night ip/)){ my %hash=(); $hash{$day}{'start'}=$start; $hash{$day}{'end'}=$end; push @{$task},{%hash}; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: trying to use strict :(
by gellyfish (Monsignor) on Jul 16, 2003 at 11:07 UTC | |
|
Re: trying to use strict :(
by davorg (Chancellor) on Jul 16, 2003 at 11:00 UTC |