0
|
1 NAME
|
|
2 PackageInfo
|
|
3
|
|
4 SYNOPSIS
|
|
5 use PackageInfo;
|
|
6
|
|
7 use PackageInfo qw(:all);
|
|
8
|
|
9 DESCRIPTION
|
|
10 PackageInfo module provides the following functions:
|
|
11
|
|
12 GetPackageKeyValue, IsPackageKeyNameAvailable, SetPackageKeyValue
|
|
13
|
|
14 The functions to set and get package keyvalues not explicitly defined in
|
|
15 this module are implemented using Perl's AUTOLOAD functionality. These
|
|
16 methods are generated on-the-fly for a specified key:
|
|
17
|
|
18 Set<KeyName>(<KeyValue>);
|
|
19 $KeyValue = Get<KeyName>();
|
|
20
|
|
21 PackageInfo module provides functionality to retrieve information about
|
|
22 MayaChemTools package from PackagaInfo.csv which contains the following
|
|
23 types key name and values:
|
|
24
|
|
25 "KeyName","KeyValue"
|
|
26 "PackageName","MayaChemTools"
|
|
27 "ReleaseDate","Oct 21, 2010"
|
|
28 "VersionNumber","7.4"
|
|
29 "DevSoftwareEnvironment","Cygwin on Windows XP"
|
|
30 ... ...
|
|
31 ... ...
|
|
32
|
|
33 FUNCTIONS
|
|
34 GetPackageKeyValue
|
|
35 $KeyValue = GetPackageKeyValue($KeyName);
|
|
36
|
|
37 Returns KeyValue for a specified *KeyName*.
|
|
38
|
|
39 IsPackageKeyNameAvailable
|
|
40 $Status = IsPackageKeyNameAvailable($KeyName);
|
|
41
|
|
42 Returns 1 or 0 based on whether *KeyName* is available in package
|
|
43 info file.
|
|
44
|
|
45 SetPackageKeyValue
|
|
46 SetPackageKeyValue($KeyName, $KeyValue);
|
|
47
|
|
48 Sets *KeyValue* for a *KeyName*. No data is written to package info
|
|
49 file.
|
|
50
|
|
51 AUTHOR
|
|
52 Manish Sud <msud@san.rr.com>
|
|
53
|
|
54 COPYRIGHT
|
|
55 Copyright (C) 2015 Manish Sud. All rights reserved.
|
|
56
|
|
57 This file is part of MayaChemTools.
|
|
58
|
|
59 MayaChemTools is free software; you can redistribute it and/or modify it
|
|
60 under the terms of the GNU Lesser General Public License as published by
|
|
61 the Free Software Foundation; either version 3 of the License, or (at
|
|
62 your option) any later version.
|
|
63
|