develooper Front page | perl.perl5.porters | Postings from February 2000

ClearCase and perl module loading?

Thread Next
From:
Mark Mielke
Date:
February 24, 2000 12:08
Subject:
ClearCase and perl module loading?
Message ID:
20000224150544.B11753@pcard12x.ca.nortel.com
Hello all,

I was wondering what people would think of a patch to perl that would
allow the following to work:

    use Module v1.0;   # Currently just fails if the module isn't at least 1.0
    use Module "@@/main/03";  # Would load instance named by stream /main/03.

I wouldn't even care if:

    use ClearCase;

Was necessary ahead of time.

I tried fiddling with putting a CV in @INC, but I don't think I fully
understand how that works. Any documentation or hints?

Thank you,
mark

P.S. For those that are not familiar with ClearCase, it allows users
     to access their revision controlled software that they are working
     on as if the object were normal files. One decides using some
     magical syntax, which files you want to be visible to you in
     your view, but if you want to reference a specific instance
     of a module, you append "@@INSTANCE" to the filename.

         ..../A.pm            - A.pm selected by your view
         ..../A.pm@@/main/02  - Instance 2 of A.pm in the main branch.

     The reason why this might be necessary is so that the module
     dependencies resolve correctly, without considering the what
     configuration the user has in their view. The current scheme
     required is:

          BEGIN {
              require "Blah.pm@@/someTag";
              import Blah;
          }

     I'm just wishing for a:

          #use ClearCase;          # If it can be done from a module...
          use Blah "@@/someTag";

-- 
markm@nortelnetworks.com/mark@mielke.cc/markm@ncf.ca __________________________
.  .  _  ._  . .   .__    .  . ._. .__ .   . . .__  | SIR Tools          (7H12)
|\/| |_| |_| |/    |_     |\/|  |  |_  |   |/  |_   | Nortel Networks
|  | | | | \ | \   |__ .  |  | .|. |__ |__ | \ |__  | Ottawa, Ontario, Canada

  One ring to rule them all, one ring to find them, one ring to bring them all
                       and in the darkness bind them...

                           http://mark.mielke.cc/


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About