# I am trying to write a simple script that interrogates
# ClearCase for Checked-out files. When I run the program
# in debug, all seems to go well until I get to a certain
# point. That point is at the end of what I've written to
# date (and I've commented below what problem I'm
# having). I would be most appreciative of any help
# anybody could give.
#! perl -w use strict; use warnings; use Win32::OLE; use Win32::OLE::Variant; # for variant arrays my $ccSelection_Path = 0; # $ccSelection_ values from the WEB my $ccSelection_SubTreeRoot = 1; my $ccSelection_Directory = 2; my $ccSelection_AllInVOB = 3; my $ccSelection_AllVOBs = 4; # Connect to the top-level ClearCase object my $cc = Win32::OLE->new('ClearCase.Application') or die "Could not create Application object\n"; my $COQuery; $COQuery = $cc->CreateCheckedOutFileQuery; $COQuery->{PathArray} = ["cc_views/heller_int_view/Pre_Funding/CustomE +!"]; $COQuery->{User} = "heller"; $COQuery->{PathSelects} = $ccSelection_AllInVOB; my @CheckedOutFiles; @CheckedOutFiles = $COQuery->Apply(); #<--- the problem. my $count; $count = @CheckedOutFiles->Count();
# Everything seems to be working as desired until I
# realized that @CheckedOutFiles is null after the line
# marked above. Why? I don't have a clue.

2006-11-03 Retitled by planetscape, as per Monastery guidelines

( keep:1 edit:27 reap:0 )

Original title: 'Winderz - Using COM and OOP'


In reply to Having trouble running query in ClearCase OLE interface by Anonymous Monk

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.