shy > Acpi-0.1 > Acpi::Battery

Download:
acpi/Acpi-0.1.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  1
View/Report Bugs
Module Version: 0.1   Source  

NAME ^

Acpi::Battery - A class to get informations about your battery.

SYNOPSIS ^

use Acpi::Battery;

$battery = Acpi::Battery->new;

if($battery->batteryOnLine == 0){

        print "Battery online\n";
        
        print $battery->getCharge."\n"; 
        
        print "Time remaining ".$batteyr->getHoursLeft.":".$battery->getMinutesLeft."\n";

}

else{

print "Battery offline\n";

}

DESCRIPTION ^

Acpi::Battery is used to have information about your battery.It's specific for GNU/Linux

METHOD DESCRIPTIONS ^

This sections contains only the methods in Battery.pm itself.

AUTHORS ^

syntax highlighting: