$hashref = { a => '$/ 11' }; $fieldnum= 'a'; $value = $hashref->{$fieldnum}; print "$value";