in reply to Re: dealing with RUNTIME, COMPILE TIME and use lib ...
in thread dealing with RUNTIME, COMPILE TIME and use lib ...

Or run your code during compile time

my $version; BEGIN { $version = "something from the post"; } use lib "/commun_path/$version/ensembl/modules"; use Bio::EnsEMBL::Registry;

⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊

Replies are listed 'Best First'.
Re^3: dealing with RUNTIME, COMPILE TIME and use lib ...
by davorg (Chancellor) on Aug 23, 2006 at 13:50 UTC

    I thought about that. But then I thought that

    $version = "something from the post";

    could potentially involve all sorts of complexities that you might not want to do at compile time.

    It's certainly another alternative tho'.

    --
    <http://dave.org.uk>

    "The first rule of Perl club is you do not talk about Perl club."
    -- Chip Salzenberg