Burak Gürsoy > Sys-Info-Base-0.72 > Sys::Info::Device

Download:
Sys-Info-Base-0.72.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
Report a bug
Module Version: 0.72   Source  

NAME ^

Sys::Info::Device - Information about devices

SYNOPSIS ^

    use Sys::Info;
    my $info      = Sys::Info->new;
    my $device    = $info->device( $device_id );
    my @available = $info->device('available');

or

    use Sys::Info::Device;
    my $device    = Sys::Info::Device->new( $device_id );
    my @available = Sys::Info::Device->new('available');

DESCRIPTION ^

This document describes version 0.72 of Sys::Info::Device released on 3 May 2009.

This is an interface to the available devices such as the CPU.

METHODS ^

new DEVICE_ID

Returns an object to the related device or dies if DEVICE_ID is bogus or false.

If DEVICE_ID has the value of available, then the names of the available devices will be returned.

AUTHOR ^

Burak Gürsoy, <burak@cpan.org>

COPYRIGHT ^

Copyright 2006-2009 Burak Gürsoy. All rights reserved.

LICENSE ^

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.10.0 or, at your option, any later version of Perl 5 you may have available.