Regular expression '^x.*d$' is not working
08:46 18 Aug 2010
my $pat = '^x.*d$';

my $dir = '/etc/inet.d';

if ( $dir =~ /$pat/xmsg ) { 

    print "found ";

}

how to make it sucess

regex perl