[Israel.pm] constants

Berler Chanan chananb at centerity.com
Thu Sep 3 06:48:55 PDT 2009


Hi All,

Question for you people:
I have got a 2 files like these: one if a perl module, and the other is a
script using require to include the file.
Q: why pt is not defined in Myscript.pl file, although I used the required
? 
Thanks
Chanan

common_pdf.pm

=======================
use constant pt => 1;
1;

Myscript.pl
========================
require "common_pdf.pm";

my $lv_num = pt;
print $lv_num;



More information about the Perl mailing list