Perl: Retrieving Records
Retrieving Records
To retrieve the value of a reference, use the -> (pointer) operator
# Here we'll access the record by SSN#,
# Then pull out the NAME & PHONE fields from that record
print "$NAMELIST{000-00-0001}->{NAME}\n"print "$NAMELIST{000-00-0001}->{PHONE}\n"