I tripped over this chunk of code today -

#!/usr/bin/perl -w

BEGIN {
        use File::Basename;
        unshift @INC, dirname($0);
}
use strict;
use module_whatever;
...


if I'm reading this right it would let
you include a required module your users
may or may not have with your own script.
No installation required.

Is there a drawback to this approach?

Brian


-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to