Please help me out and let me know what the general process is when using this Win32::OLE process. I believe that I know it, but want to check it against all of the wisdom that is willing to help me out.
{ $Excel = Win32::OLE->GetActiveObject('Excel.Application') || Win32::OLE->new('Excel.Application', 'Quit'); $Excel->{'Visible'} = 0; $book = $Excel->Workbooks->Open("$dirpath\\$xls"); $worksheet = $book->Worksheets(1); $row = 0; $read_xls++; while ($read_xls) { $row++; $excel_data = $worksheet->Range("A$row:Z$row")->{'Value'}; $col1_data = $excel_data->[0][0]; $col2_data = $excel_data->[0][1]; $col1_data =~ s/\s*$//; $col2_data =~ s/\s*$//; if ($col1_data =~ /^MDLS/i) { $found_mdls++; $col = 0; } next unless $found_mdls; unless ($col1_data) { $found_mdls = ""; $read_xls = ""; last; } $model = $col1_data; $spec = $col2_data; $prod2 = $model; $Excel->Workbooks->Close(); }
I forgot to put this in, but what is the value of 0 and 1 in the form of the Worksheet format. I believe that they just get concatenated with the next set of values, but really want to make sure.

just so you all know, this has been a painful post for me. I have felt stupid, then smart, then stupid all over again. I do know now what I was looking for and have figured out the flow of this program. I was on the right track and thanks to a few kind monks, I have found my way with this program.

Although, I have learned that this place is majorly competive and I am not one of the top monks, I am humble enough to carry forward and ask another question if I need to, in order to get the help that I need.

Peace, ((love)) and Code


In reply to Simple Question - Simple Answer, I hope. by basicdez

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.