File: README.perl

package info (click to toggle)
pdbv 2.0.10.1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 436 kB
  • ctags: 52
  • sloc: perl: 1,004; sh: 291; makefile: 129
file content (37 lines) | stat: -rw-r--r-- 1,115 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
HISTORY:

Iniatialy, pdbv (1.x) was entirely written in bash.

Hopefully to get something faster, the 2.x is in perl. It will also
help me to learn more about perl.

I decided to only rewrite, not to rethink pdbv. So technically
speaking, there's is nothing new in the first 2.x version by
comparison with the last 1.x version.

In fact, this assertion is partially wrong: perl can do many things in
a easier and faster way, so step by step I'll try to optimize the
code. For instance, %hashes aren't available in bash while they indeed
are in perl... and it can helps a lot.


REQUIREMENTS:

use Locale::gettext;
use POSIX;
use Getopt::Long;
use Term::ANSIColor qw(:constants);
use File::stat;
use Sys::Hostname;
use FileHandle;

For Debian, the package dependancies should be correctly filled. 
For RedHat (or rpm based system), you must find (see http://rpmfind.net)
the package perl-gettext.


ABOUT RPM SUPPORT:

Some work need to be done in area.x. Normally, there are perl modules to
access RPM database directly. If you are willing to check how it can
be used by pdbv, write a mail to <pdbv-dev@nongnu.org>