$text =~ m/.../; # Just do it, presumably, for the side effects. if ($text =~ m/.../) { # Do code if match is successful $result = ( $text =~ m/.../ ); # Set $result to result of match against $text $result = $text =~ m/.../ ; # Same thing; =~ has higher precedence than = $copy = $text; # Copy $text to $copy ... $copy =~ m/.../;# ... and perform match on $copy ( $copy = $text ) =~ m/.../;# Same thing in one expression ----------------------------------------------------------------------------- Copyright 1997-2024 Jeffrey Friedl