Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

id

name

value

setby

timestamp

3

contacts

---
- email:
    - joe@somewhere.org
    - jdoe22@unity.ncsu.edu
  employee_id: 3342
  firstname: Joe
  lastname: Doe
- email:
    - jane@somewhere.org
  employee_id: 7865
  firstname: Jane
  lastname: Doe

DataStructure.pm:554

2009-05-26 12:35:36

To retrieve the data:

Code Block

my @returned_contacts = @{$self->data->get_variable('contacts')};for my $contact (@returned_contacts) {   print "Name: $contact->{firstname} $contact->{lastname}\n";   for my $email_address (@{$contact->{email}}) {      print "Email: $email_address\n";   }   print "---\n";
}