josh@relativelysane.com wrote:
>Now I just have to figure out how to do a 'if - then - else' string in perl ;-)
>(for example; if 'flavor' = 'whatever' use 'strong', elseif 'flavor' =
'thisotherthing' use 'a', else use 'normal')
my $str;
if( $flavor eq 'whatever' ) {
$ans = 'strong';
} elsif( $flavor eq 'flavor' ) {
$ans = 'a'
} else {
$ans = 'normal';
}
--
Michael Peters
Developer
Plus Three, LP
_______________________________________________
Users mailing list
Users@lists.swish-e.org
http://lists.swish-e.org/listinfo/users
Received on Thu Oct 25 13:01:37 2007