On Fri, 24 Sep 2004, brian larochelle wrote:
> That makes perfect sense. Except for the last value of 'other'
> which I would want at the end of the list and a choice for the
> person filling out the form is they did not live in the US.
A common way around this is to leave "other" out of the hash:
do_stuff( "other" );
foreach $key ( sort keys %hash ) {
do_stuff( $hash{$key} );
}
do_stuff( "final thing" );
sub do_stuff {
my $thingy = shift;
...
print qq[ <p> $thingy </p> ];
}
This general approach can be applied to lots of situations, including
the one that you're describing.
--
Chris Devers
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>