- or download this
next if ($element eq $compare);
- or download this
($front, $back) = split /:/, $compare;
if ( $compare =~ /:$back$/ ) {
# do something
}
- or download this
$moduloc = () = $compare =~ /X(\d+):/; # Grab the divisor.
$moduloe = () = $element =~ /X(\d+):/; # Grab the other one.
...
if ( not ($moduloe)%($moduloc) ) {
# Do something.
}