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
constant::abs(3) User Contributed Perl Documentation constant::abs(3)

constant::abs - Perl pragma to declare previously constants using absolute name

Version 0.01

Define compile-time constant using full package name. The main reason is to use for forward definition of debugging constants. Created as an addition for "constant::def"

    # complex way
    # in main.pl
    BEGIN { *My::Module::Debug = sub () { 1 }; }
    use My::Module;

    ################

    # using this distribution
    # in main.pl
    use constant::abs 'My::Module::DEBUG' => 1;
    use My::Module;

Syntax is fully compatible with "constant"

constant::def, constant

Mons Anderson, "<mons at cpan.org>"

Copyright 2009 Mons Anderson.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

2009-03-11 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.