On Wed, 20 Mar 2019 15:48:42 -0600 Matt Plug <matt.plug....@gmail.com> wrote:
> The phones() subroutine accepts an arrayref (of hashrefs) as its > argument, per the docs:https://metacpan.org/pod/vCard#phones() > > You can simply push each phone number's hashref into your own array, > then pass it to phones() as an arrayref once it's complete for that > vCard. e.g.: > > my @vcard_phones; > > if (length($fields[6]) > 0) { > push @vcard_phones, { type => ['home'], number => $fields[6] }; > } Bingo, exactly what I needed. Thank you. Obviously I am having problem with the syntax surrounding references. -- "When we talk of civilization, we are too apt to limit the meaning of the word to its mere embellishments, such as arts and sciences; but the true distinction between it and barbarism is, that the one presents a state of society under the protection of just and well-administered law, and the other is left to the chance government of brute force." - The Rev. James White, Eighteen Christian Centuries, 1889 Key fingerprint = CE5C 6645 A45A 64E4 94C0 809C FFF6 4C48 4ECD DFDB https://charlescurley.com /* PLUG: http://plug.org, #utah on irc.freenode.net Unsubscribe: http://plug.org/mailman/options/plug Don't fear the penguin. */