PFM class used for updating an existing .pfmrc for a newer version of
"pfm". Your original .pfmrc will be
backed up as .pfmrc.datestamp.
This class should be regarded as a get-me-going-fast
solution. You will probably be better off by having
"pfm" generate a new .pfmrc for you
and comparing it to your own version.
- _init()
- Initializes new instances. Called from the constructor.
- _by_pfmrc_rules()
- Sorting subroutine. Sorts the vim(1) modeline last.
- _sort_pfmrc(arrayref $text)
- Sorts the lines in the pfmrc text.
- _cross(string $cross, string $from, string $to)
- Determines if a certain version cross is crossed when updating from
from to to.
- _remove(arrayref $text, array @regexps)
- Removes matching lines from the config text.
- _append(arrayref $text, array @addition)
- Adds the specified lines at the end of the config text.
- _insert(arrayref $text, regexp $before, regexp $after, array
@addition)
- Adds the specified lines at the specified place in the config text. If
before is specified, the addition is inserted before the
matching line. If after is specified, the addition is
inserted after the matching line.
- _substitute(arrayref $text, coderef $substitutor)
- Executes the substitutor code for all lines in the config
text.
- _get_locale()
- Finds the locale that is currently in use for LC_TIME.
- _get_pfmrc_timefieldlen(arrayref $text)
- Determines the minimum length of a Unix 'ctime', 'mtime' or 'atime'
column.
- _get_pfmrc_timefieldformat(arrayref $text)
- Determines the minimum length of the format as determined by the
'timestampformat' column.
- _update_to_version()
- _update_version_identifier
- Updates the 'Version:' line in text to the new version.
- _update_text(string $version_from, string $version_to, arrayref
$text)
- Updates the array indicated by text to the new version by adding
any new config options, removing deprecated ones, and updating definitions
that have changed.
- get_minimum_version()
- Fetches the minimum version a .pfmrc must have in order for this
class to be able to update it.
- check_date_locale(arrayref $text)
- Checks the 'columnlayouts' option to see if it can accommodate date/time
strings localized according to your current locale (as defined by LC_ALL
or LC_TIME).
- update(string $version_pfmrc, string $version_pfm, arrayref $text)
- Updates the lines in the array pointed to by
$text.
SEE ALSO
pfm(1), locale(7). App::PFM::Config(3pm).