Hope this helps.my $x = '5.1'; my $y = '5.1.1'; if($x =~ /5.1/) { print "X equals 5.1 \n"; } if($y =~ /5.1.1/) { print "Y equals 5.1.1 \n"; }
In reply to Re: if elsif else question
by sub_chick
in thread if elsif else question
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |