Olivier Thauvin > mmm-0.43 > MMM::Utils

Download:
mmm-0.43.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  1
View/Report Bugs
Source  

NAME ^

MMM::Utils

METHODS ^

yes_no($val)

Parse $val to return true or false

fmt_duration($second)

Transform a duration in second to a string in form of day/hours/minutes/seconds.

duration2m($duration)

Return in minutes a human readable value like 2d or 3h

setid($user, $group)

Change effective user and group to $user and optionnal $group.

Return arrayref containning old uid and gid on success. Return undef and error message on failure.

AUTHOR ^

Olivier Thauvin <nanardon@nanardon.zarb.org>

syntax highlighting: