start page | rating of books | rating of authors | reviews | copyrights

Book HomeJava and XSLTSearch this book

8.45. 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;


Library Navigation Links

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