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
Config::Objective::Integer(3) User Contributed Perl Documentation Config::Objective::Integer(3)

Config::Objective::Integer - integer data type class for Config::Objective

  use Config::Objective;
  use Config::Objective::Integer;

  my $conf = Config::Objective->new('filename', {
                        'intobj'        => Config::Objective::Integer->new()
                });

The Config::Objective::Integer module provides a class that represents an integer value in an object so that it can be used with Config::Objective. Its methods can be used to manipulate the encapsulated integer value from the config file.

The Config::Objective::Integer class is derived from the Config::Objective::DataType class, but it defines/overrides the following methods:

set()
Sets the object's value to the supplied value. The value must consist of only digit characters, with an optional leading "-" character to denote a negative value.
add()
Adds the supplied value to the object's value.
sub()
Subtracts the supplied value from the object's value.
div()
Divides the object's value by the supplied value.
mult()
Multiplies the object's value by the supplied value.
incr()
Increments the object's value by one.
decr()
Decrements the object's value by one.
equals()
Same as the eq() method.
eq()
Returns true if the object's value is equal to the supplied value.
ne()
Returns true if the object's value is not equal to the supplied value.
gt()
Returns true if the object's value is greater than the supplied value.
lt()
Returns true if the object's value is less than the supplied value.
ge()
Returns true if the object's value is greater than or equal to the supplied value.
le()
Returns true if the object's value is less than or equal to the supplied value.

Mark D. Roth <roth@uiuc.edu>

perl

Config::Objective

Config::Objective::DataType

2003-02-03 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.