I am using a ClearCase::Argv module on a routine basis, and it loads and works without glitches.
Now, I start using it from an other module, ClearCase::Wrapper, which offers user customization from a script in the user home directory. It runs this one as follows:
if (-r "$ENV{HOME}/.clearcase_profile.pl" && ! -e "$libdir/NO_OVERRIDES") { require "$ENV{HOME}/.clearcase_profile.pl"; }
I set such a script, and need within it to do a:
require ClearCase::Argv;
I run the same setup on Solaris perl 5.8.8, and on Cygwin perl 5.10.0.

On Solaris, no problem. On Cygwin, everything is fine, apart for one spurious warning for every run of my 'wrapper' (aliased to ct):

$ ct des -fmt "\n" . Name "ClearCase::Argv" used only once: possible typo at \ /usr/lib/perl5/site_perl/5.10/Argv.pm line 308.
This second Argv module is used exactly in the same way on both platforms. The line mentioned doesn't look particularly suspicious to me:
$ cat -n /usr/lib/perl5/site_perl/5.10/Argv.pm | sed -n 304,311p 304 $self = {}; 305 if ($proto ne __PACKAGE__) { 306 # Inherit class attributes from subclass class attributes. 307 no strict 'refs'; 308 for (keys %$proto) { 309 $self->{$_} = $proto->{$_}; 310 } 311 }
Any clue to help me to debug and understand this?
Thanks!
Marc

P.S. The modules are available from CPAN, but work only around a proprietary tool: IBM/ClearCase.


In reply to Spurious warning from require'd package by cramdorgi

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.