VMS::IndexedFile allows your perl program to access records by key in an RMS indexed file.
use VMS::IndexedFile;
$objvar = tie(%hash_variable,VMS::IndexedFile,filespec,[key],[flags],[fdlspec]);
$record = $hash_variable{'Key Value'}; # read a record from the file by key
$hash_variable{'Key Value'} = $record; # update or store a new record