Thread Umgang mit projektweiten Konstanten
(4 answers)
Opened by gkaiser at 2008-01-29 15:30
Ich mach das momentan so:
Code (perl): (dl
)
1 2 3 4 5 6 7 8 9 10 package My::Constants; use base 'Exporter'; use constant TRUE => 1; use constant FALSE => 0; use constant NL => "\n"; use constant NULL => "\0"; our @EXPORT = qw(TRUE FALSE NL NULL); 1; |