I need to do pattern match with two variables one contains the string and the other contains the regex pattern I tried with the following program
#!/usr/bin/perl
my $name = "sathish.java";
my $other = '*.java';
if ( $name =~ m/$other/ )
{
print "sathish";
}
kindly help where am missing
Thanks Sathishkumar