Jaishree: 'eq' operator is used only if the values you are comparing are anything other than numeric data type. '==' operator is used to compare for numeric data-type.
Your condition should be as follows: if(($_field >=1) && ($_field <=10)){ do something } Similarly, if($_field eq 'something'){ do something } if($_file == 100){ do something } Please see perlop manpage for more details. Cheers, Rex Jaishree Rangaraj wrote: >Hello > >I have a value say "$s_field". I have to see if this matches with in the >range 1-10 > >can I use eq operator for this. I am a beginner , please help me to do >this. > >Thanks > >Jessie > > > > > > > >--------------------------------- >Do You Yahoo!? >LAUNCH - Your Yahoo! Music Experience > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]