GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
App::PFM::Util(3) User Contributed Perl Documentation App::PFM::Util(3)

App::PFM::Util

Static class derived from Exporter that provides some practical utility functions for pfm.

min(float $first, float $second [, float $third ...] )
max(float $first, float $second [, float $third ...] )
Determine the minimum or maximum numeric value out of several.
inhibit(bool $first, bool $second)
Calculates the logical inhibition of two values, defined as ((not $a) and $b).
toggle(bool ref $arg)
triggle(int ref $arg)
Determine the next value in a cyclic two/three-state system.
isxterm(string $termname)
Determines if a certain value for $ENV{TERM} is compatible with 'xterm'.
isyes(string $yesno)
isno(string $yesno)
Determine if a certain string value is equivalent to boolean false or true.
dirname(string $path)
basename(string $path)
Determine the filename without directory (basename) or directoryname containing the file (dirname) for the specified path.
formatted( [ $field1 [, $field2 [, ... ] ] ] )
Returns a line that has been formatted using Perl formatting algorithm.
fit2limit(int $number, int $limit)
Fits a file size into a certain number of characters by converting it to a number with kilo (mega, giga, ...) specification.
canonicalize_path(string $path [, bool $keeptrail ] )
Turns a directory path into a canonical path (like realpath()), but does not resolve symlinks.

If keeptrail is set, a trailing . or .. component is left untouched.

reducepaths(string $firstpath, string $secondpath )
Removes an identical prefix from two paths.
reversepath(string $symlink_target_abs, string $symlink_name_rel)
Reverses the path from target to symlink, i.e. returns the path from symlink to target.
isorphan(string $symlinkpath)
Returns true if a symlink is an orphan symlink.
ifnotdefined(mixed $first, mixed $second)
Emulates the perl 5.10 "//" operator (returns the first argument if it is defined, otherwise the second).
setifnotdefined(mixed ref $var, mixed $value)
Emulates the perl 5.10 "//=" operator (if the first argument is undefined, it is set to the value of the second).
clearugidcache()
Clears the username/groupname cache.
find_uid(int $uid)
find_gid(int $gid)
Finds the username or group name corresponding to a uid or gid, and caches the result.
condquotemeta(bool $do_quote, string $text)
Conditionally quotemeta() a string.
touch2time(string $datetime)
Parses a datetime string of the format [[CC]YY-]MM-DD hh:mm[.ss] and returns a datetime integer as created by mktime(3).
testdirempty(string $dirpath)
Tests if a directory is empty.
fitpath(string $path, int $maxlength)
Fits a path string to a certain length by taking out directory components.
alphabetically()
Sorting routine: sorts strings alphabetically, case-insensitive.
letters_then_numbers()
Sorting routine: sorts strings alphabetically, case-insensitive, but numbers last.
by_name()
Sorting routine: sorts files by name.
lstrftime(string $format, array @datetime)
Formats a date/time string.
maxdatetimelen(string $format)

pfm(1).
2014-04-09 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.