in reply to Re^3: How to match String with Case Sensitive??
in thread How to match String with Case Sensitive??
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"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: How to match String with Case Sensitive??
by vitoco (Hermit) on Oct 30, 2009 at 13:12 UTC |