Help for this page

Select Code to Download


  1. or download this
    sub setInformation {
      my $self = shift;
    ...
      my $model = `hdparm -i $device`;
      return $model =~ /model=([^,]+)/i;
    }
    
  2. or download this
    sub new {
      my $class = shift;
    ...
      };
      bless $self, $class;
    }