Blogs on .NET and LAMP Technologies There's often more than one correct thing. There's often more than one right thing. There's often more than one obvious thing. --Larry Wall
my $pattern = '[lerp]+';my $target = 'this is [lerp]+ perl';(my $output1 = $target) =~ s/${pattern}//g;(my $output2 = $target) =~ s/\Q${pattern}//g;print $output1 , "\n";print $output2 , "\n";
Post a Comment
No comments:
Post a Comment