TAP::DOM::DocumentData - Accessors for key/value document data
A document can contain comment lines which actually contain key/value data, like this:
# Test-vendor-id: GenuineIntel # Test-cpu-model: Intel(R) Core(TM) i7-3667U CPU @ 2.00GHz # Test-cpu-family: 6 # Test-flags.fpu: 1
Those lines are converted into a hash by splitting it at the : delimiter and stripping the # Test- prefix. The resulting data structure looks like this:
:
# Test-
# ... inside TAP::DOM ... document_data => { 'vendor-id' => 'GenuineIntel', 'cpu-model' => #Intel(R) Core(TM) i7-3667U CPU @ 2.00GHz', 'cpu-family' => 6, 'flags.fpu' => 1, },
Sets the value for a key.
Returns the value for a key.
Steffen Schwigon <ss5@renormalist.net>
This software is copyright (c) 2020 by Steffen Schwigon.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install TAP::DOM, copy and paste the appropriate command in to your terminal.
cpanm
cpanm TAP::DOM
CPAN shell
perl -MCPAN -e shell install TAP::DOM
For more information on module installation, please visit the detailed CPAN module installation guide.