locate an entry and related information in the file
Does any one have an good idea to implement following question in perl effectively.
suppose there is a file the format is:
when the program gets an entry name and its value from user(e.g. "entry2 24"),it can locate this entry and its range in the file.Then check if the given value is within range. and report "success" or "fail" to the user.