[oak perl] ?? Include.H in PERL??
Mark Bole
mark at bincomputing.com
Sun Jul 24 12:14:49 PDT 2005
The "require" function is probably closest to the cpp (C pre-processor)
directive #include, although it happens at run-time, not compile time.
You can get around that by using:
BEGIN { require 'zzzz.h'; }
but it still doesn't know how to search @INC automatically.
But if you are creating modules, then use "use" instead of "require".
--
Mark Bole
http://www.bincomputing.com
925-287-0366
Paul Gerken wrote:
>Hi all,
>
>In Perl, what is the equivalent of the C/C++
>#include <zzzz.h>
>
>When using the Class::Struct module,
>should all of the Struct-s be placed in a "zzzzh.pm" program?
>Or should the Struct-s be put in the creating program?
>
>I envisage 4-5-6 programs in this project suite which I am
>doing for my own edification of Perl.
>e.g. Main.pm, File.pm, Table.pm, Data.pm, Catalog.pm, ...
>Should there also be a Structs.pm?
>
>tkx, Paul
>
>_______________________________________________
>Oakland mailing list
>Oakland at pm.org
>http://mail.pm.org/mailman/listinfo/oakland
>
>
>
>
More information about the Oakland
mailing list