home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam  


8.34 constant

A Perl pragma that declares compile-time constants with a given scalar or list value. By default, the value is evaluated in list context, but you can override the default by specifying scalar .

use constant 
NAME1
 => 
value1
;
use constant 
NAME2
 => scalar 
value2
;


Previous: 8.33 Config Perl in a Nutshell Next: 8.35 CPAN
8.33 Config Book Index 8.35 CPAN

Library Navigation Links

Copyright © 2001 O'Reilly & Associates. All rights reserved.