Difference between /.../ and m/.../ in Perl

Viewed 4001

What is difference between /.../ and m/.../?

use strict;
use warnings;

my $str = "This is a testing for modifier";

if ($str =~ /This/i) { print "Modifier...\n";  }
if ($str =~ m/This/i) { print "W/O Modifier...\n";  }

However, I checked with this site for Reference not clearly understand with the theory

2 Answers
Related