Hi Perlers

        Here is my code


my $match = '1ak';
if ( length($match) =~ /3/){

         if ($match =~/([a-hj-nprt-wyA-HJ-NPRT-WY])/ ){
        print "OK \n";
        }
        else{
        print "Error \n";
        }
}
else{
print  " Length Problem \n" ;
}

But when I am executing its still giving me Ok as output .The Problem is 
like this I want to match only character (a-h,j-n,p,r,t-w,y)  including 
upper case also or in other words I need Error when it it encounters with 
any letter [IOQSXZ].
I know we can do with /[^IOQSXZ]i/.  But the thing is I want to check only 
alphabets(except those which I just mentioned) or hypen(-) can be pass 
through this test.

        I think I made everything clear................If somebody can 
help me in this matter............then he is most 
welcome........................


with regards

n

warm thankX 

Mayank Ahuja
Team Member
Tata Consultancy Services Limited
Ph:- 044-55555816
Cell:- 9283199460
Mailto: [EMAIL PROTECTED]
Website: http://www.tcs.com

Notice: The information contained in this e-mail message and/or attachments to 
it may contain confidential or privileged information.   If you are not the 
intended recipient, any dissemination, use, review, distribution, printing or 
copying of the information contained in this e-mail message and/or attachments 
to it are strictly prohibited.   If you have received this communication in 
error, please notify us by reply e-mail or telephone and immediately and 
permanently delete the message and any attachments.  Thank you

Reply via email to