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

Re: ClearCase and perl module loading?

Thread Previous
From:
Nick Ing-Simmons
Date:
February 24, 2000 15:17
Subject:
Re: ClearCase and perl module loading?
Message ID:
E12O7VU-0005kC-00@mserv1c.u-net.net
Mark Mielke <markm@nortelnetworks.com> writes:
>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;

You could probaly make

     use ClearCase::Version Module '@@/main/03';

"Do the right thing" i.e.

ClearCase::Version::import could mimic perl's lookup of where .pm file
is then append the suffix:

require "/some/path/Module.pm@@/main/03";

What is less likely to work though is finding associated things like
sub-modules or loadable .so files. 
It is irritaing that looking in a versioned directory does not 
"just work" and give you the versions of the files that were current
at the time.

>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. 

But with abormal file names ;-)

>     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/
-- 
Nick Ing-Simmons


Thread Previous


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