[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Uploaded faqomatic 2.506-2 (source all) to master



Carey Evans <c.evans@clear.net.nz> writes:
> Manoj Srivastava <srivasta@datasync.com> writes:
> 
> > #!/usr/bin/perl
> BEGIN {            # Must be executed before `use lib'.
> > $LIBDIR='/usr/local/lib/site_perl';
> > if (-f '/etc/fom.conf') {do '/etc/fom.conf';};
> }
> > use lib "$LIBDIR";
> use lib $LIBDIR;    # Just being picky.
> > use FAQ::OMatic::dispatch;
> > FAQ::OMatic::dispatch::main('meta/');
> 
> Sorry.  For my next project I aim to become this picky about Python.

Well, if we're going to be picky that should be....

-- cut --
#!/usr/bin/perl
BEGIN {
  if (-f '/etc/fom.conf')
  {
    do '/etc/fom.conf';
    use lib $fom_conf if $fom_lib;
  }
}
use FAQ::OMatic::dispatch;
FAQ::OMatic::dispatch::main($fom_dir || 'meta/');
-- end --

Including '/usr/local/lib/site_perl' is unnecessary; it's already in @INC.

-- 
Stephen (who's now reached his pointless posts quota for the day :))
---
"Normality is a statistical illusion." -- me


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-devel-request@lists.debian.org . 
Trouble?  e-mail to templin@bucknell.edu .


Reply to: