- or download this
foreach $line (<FILE>)
{
...
chomp($line); #remove empty newlines in input file
}
}
- or download this
while($timestamp <= $numevents)
...
$timestamp++;
}
- or download this
$pid = 0; #process index
@p_s = (); #2d process array/stack
...
%schedule = (); #hash of each event with timestamp
@totalorder = (); #final order of each event
- or download this
###################
...
print "\n\n";
}