Query: parse::dmidecode::handle
OS: debian
Section: 3pm
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
Parse::DMIDecode::Handle(3pm) User Contributed Perl Documentation Parse::DMIDecode::Handle(3pm)NAMEParse::DMIDecode::Handle - SMBIOS Structure Handle Object ClassSYNOPSISuse Parse::DMIDecode qw(); my $decoder = new Parse::DMIDecode; $decoder->probe; for my $handle ($decoder->get_handles) { printf("Handle %s of type %s is %s bytes long (minus strings). ". " > Contians the following keyword data entries: ", $handle->handle, $handle->dmitype, $handle->bytes ); for my $keyword ($handle->keywords) { my $value = $handle->keyword($keyword); printf("Keyword "%s" => "%s" ", $keyword, (ref($value) eq 'ARRAY' ? join(', ',@{$value}) : ($value||'')) ); } }DESCRIPTIONMETHODSnew Create a new struture handle object. This is called by Parse::DMIDecode's parse() (and indirectly by probe()) methods. raw my $raw_data = $handle->raw; Returns the raw data as generated by dmidecode that was parsed to create this handle object. bytes my $bytes = $handle->bytes; address my $address = $handle->address; Returns the address handle of the structure. handle Alias for address. dmitype my $dmitype = $handle->dmitype; type Alias for dmitype. description my $description = $handle->description; keywords my @keywords = $handle->keywords; Returns a list of keyword data pairs available for retreival from this handle object. keyword for my $keyword ($handle->keywords) { printf("Keyword "%s" => "%s" ", $keyword, $handle->keyword($keyword) ); } parsed_structures use Data::Dumper; my $ref = $handle->parsed_structures; print Dumper($ref); Returns a copy of the parsed structures. This should be used with care as this is a cloned copy of the parsed data structures that the Parse::DMIDecode::Handle object uses internally, and as such may change format in later releases without notice.SEE ALSOParse::DMIDecodeVERSION$Id: Handle.pm 976 2007-03-04 20:47:36Z nicolaw $AUTHORNicola Worthington <nicolaw@cpan.org> <http://perlgirl.org.uk> If you like this software, why not show your appreciation by sending the author something nice from her Amazon wishlist ? <http://www.amazon.co.uk/gp/registry/1VZXC59ESWYK0?sort=priority>COPYRIGHTCopyright 2006 Nicola Worthington. This software is licensed under The Apache Software License, Version 2.0. <http://www.apache.org/licenses/LICENSE-2.0> perl v5.10.1 2009-12-02 Parse::DMIDecode::Handle(3pm)
Related Man Pages |
---|
tie::handle5.18(3pm) - mojave |
tie::handle(3pm) - centos |
log::agent::channel::handle(3pm) - debian |
test::database::handle(3pm) - debian |
tie::handle(3pm) - suse |
Similar Topics in the Unix Linux Community |
---|
Parse file |
Link to Amazon wishlist or similar, acceptable? |
paste a keyword |
Keyword search input from a file |
Multiple selective keyword Report |