<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
        {mso-style-priority:99;
        mso-style-link:"Plain Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.PlainTextChar
        {mso-style-name:"Plain Text Char";
        mso-style-priority:99;
        mso-style-link:"Plain Text";
        font-family:"Calibri","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal>All,<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>It&#8217;s been a while since I did any Perl programming and
I could use a pointer.&nbsp; I work as a lab admin at Dell where one of my job
duties is to order equipment for the various teams I support.&nbsp; The process
works like this:&nbsp; we have the teams configure a system in a shopping cart
at Dell.com then submit the shopping cart to the lab admins.&nbsp; We, the lab
admins, take the information from the cart (quantity, SKUs, and descriptions),
do a whole bunch of manual manipulation and then paste the processed info into
a tool we use for internal ordering.<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>The problem:<o:p></o:p></p>

<p class=MsoNormal>I have been using Win32::Watir to interact with dell.com to
navigate to the SKUs in a shopping cart.&nbsp; I have thus far been unable to
get data in a format I can use from the shopping cart.&nbsp; I get some of the
HTML but not the stuff in the frame with the SKUs when I implement HTML::Parser
start.&nbsp; I can get the information I am after with the Parser text function
but without any kind of separation that I could write a useful regex to
separate.<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoPlainText>my $url = &#8220;<a
href="http://ecomm.dell.com/dellstore/basket_retrieve.aspx?c=us&amp;cs=04&amp;l=en&amp;s=bsd&amp;itemtype=CFG&amp;cart_id=1013663916825&amp;toEmail=john_warner@dell.com">http://ecomm.dell.com/dellstore/basket_retrieve.aspx?c=us&amp;cs=04&amp;l=en&amp;s=bsd&amp;itemtype=CFG&amp;cart_id=1013663916825&amp;toEmail=john_warner@dell.com</a>&#8221;;<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>my $ie = Win32::Watir-&gt;new( visible =&gt; 1, maximize
=&gt; 0);<o:p></o:p></p>

<p class=MsoNormal>print &quot;Pointing to IE to found URL\n&quot;;<o:p></o:p></p>

<p class=MsoNormal>$ie-&gt;goto($url);<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>print &quot;Clicking \&quot;Detail View\&quot; link in
basket\n&quot;;<o:p></o:p></p>

<p class=MsoNormal>$ie-&gt;getLink('linktext:', qr/Detail View/)-&gt;Click;<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>print &quot;Showing details of cart\n&quot;;<o:p></o:p></p>

<p class=MsoNormal>$ie-&gt;getLink('linktext:', qr/Show Details/)-&gt;Click;<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>my $ordertext = $ie-&gt;text;<o:p></o:p></p>

<p class=MsoNormal>#my $ordertext = $ie-&gt;html;<o:p></o:p></p>

<p class=MsoNormal>print $ordertext;<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>#do useful processing here&#8230;<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>The crux of my problem (I think) is that I don&#8217;t know
what type of data (array, hash, etc) that $ie-&gt;html or $ie-&gt;text
returns.&nbsp; Perhaps if I knew that I could make headway on processing&#8230;<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>Thanks for your time!<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal><i><span style='font-size:14.0pt'>John Warner<o:p></o:p></span></i></p>

<p class=MsoNormal><span style='font-size:10.0pt'>jwarner@texas.net<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt'>H:&nbsp; 512.251.1270<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt'>C:&nbsp; 512.426.3813<o:p></o:p></span></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

</div>

</body>

</html>