trim md5sum pathList2hash distName apcat inArray disable_x_screensaver enable_x_screensaver isProcessRunning custom_locale_dir devel_mode command_line help_requested
This file is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any later version.
This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this file. If not, see <http://www.gnu.org/licenses/>.
$filename the name of the file to read
depending from the context it returns the content of the file as an array or a string
This function return the content of $filename or false/0 if it fails
$distname: name of the distributed package
This function return the distname, useful to retrieve data with File::ShareDir::dist_file and must be the same as into Makefile.PL (e.g. manatools)
$st: String to be trimmed
$st: trimmed string
$item: item to search $arr: array container
true: if the array contains the item
$filename: file for md5 calculation
compute MD5 for the given file
$param : HASH ref containing paths => ARRAY of string containing path like strings separator => item separator inside a single path (default separator is /)
\%tree: HASH reference containing the same structur passed as ARRAY in a tree view form, leaves are undef.
This function return a tree representation of the given array.
if exists /usr/bin/xset disable screensaver
if exists /usr/bin/xset enables screensaver
$name: Process name $o_user: user who the process belongs to
$pid: process identifier
Function returns the process identifier if the given process is running
$cmdline: given command line
returns the command line meant as yui::YCommandLine object
locale_dir: custom locale directory or undef
returns the custom locale directory if given by command line using "--locales-dir path" or undef
boolean: 1 if --devel-mode is passed to command line, 0 otherwhise
returns 1 if "--devel-mode" is passed to command line, modules should check this value to work in developer mode
boolean: 1 if "--help" or "-h" is passed to command line, 0 otherwhise
returns 1 if "--help" or "-h" is passed to command line, modules should check this value to work accordingly