@list = $string =~ /(regex1)(regex2)/; #### ( $match1, $match2 ) = $string =~ /(regex1)(regex2)/; #### if ( $string =~ /(regex1)/ ){ $found = $1; } #### if(@ARGV && $ARGV[0] =~ /'^-') { #### if(@ARGV && $ARGV[0] =~ m'^-') {
## ( $match1, $match2 ) = $string =~ /(regex1)(regex2)/; ##
## if ( $string =~ /(regex1)/ ){ $found = $1; } ##
## if(@ARGV && $ARGV[0] =~ /'^-') { ##
## if(@ARGV && $ARGV[0] =~ m'^-') {