in reply to splitting a source file
Once you figure out separting routines from primary code, then you can move on to writing your own modules, packages and so forth, kd. Hope this helps.require "subs.pl";
Update: And, almut and chromatic caught my mistake on using 'use', which was incorrect. I was mistaken and it should be the following to get compile time inclusion:
Thanks for the catch, guys.BEGIN { do "subs.pl"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: splitting a source file
by chromatic (Archbishop) on Oct 24, 2007 at 19:55 UTC | |
by Anonymous Monk on Oct 24, 2007 at 20:52 UTC | |
by chromatic (Archbishop) on Oct 24, 2007 at 20:57 UTC | |
|
Re^2: splitting a source file
by almut (Canon) on Oct 24, 2007 at 19:51 UTC |