in reply to Grep question
This assumes an item can't have more than one status, but since you're using a scalar to hold it that's not a bad assumption.my %statusoption = ( "Waiting Approval" => 0, "Denied" => 1, "Approved" => 2, "Ordered" => 3, "Building" => 4, "Built" => 5, "Shipped" => 6, ); my $statusoption = $statusoption{$status};
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Grep question
by hok_si_la (Curate) on Feb 03, 2005 at 18:16 UTC | |
by hok_si_la (Curate) on Feb 03, 2005 at 18:23 UTC |