in reply to dealing with RUNTIME, COMPILE TIME and use lib ...
Be well,
rir
Update: Added next line, which was rather the point of partitioning the code.#!/usr/bin/perl use strict; use warnings; BEGIN { print "Begin code$/Get initialization info from user$/"; }
Progam.print "Or do initialization here before the require$/"; require Program; END { print "End program$/"; }
package Program; BEGIN: { print "Begin module$/initialize$/" } print "Runtime$/"; END: { print "End module$/" } 1;
|
|---|