I also tried with chomp($test1); and chop($test1); method. but it's not working..
#! /usr/bin/perl my $test = "abc"; my $test1 = <STDIN>; # Suppose test1 = "AbC" print $test1; chop($test1); if($test =~ m#$test1#){ print "\n Both are Same"; } else{ print "\n Both are not Same"; }
In reply to Re^4: How to match String with Case Sensitive??
by Sachin
in thread How to match String with Case Sensitive??
by Sachin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |