The standard way to check the structure of some arbitrary data in Perl is with Data::Dumper, Perl&#39;s defacto data serialization library.<br><br>Somewhere in your program &#39;use Data::Dumper;&#39;... then later &#39;print Dumper( $ordertext );&#39;.<br>
<br><br>Hope that helps.<br><br><br><div class="gmail_quote">On Tue, Nov 2, 2010 at 4:21 PM, Eric Ellington <span dir="ltr">&lt;<a href="mailto:e.ellington@gmail.com">e.ellington@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
I do not know the answer to your question, but I have used<br>
WWW::Mechanize in the past witch much success. I know the maintainer<br>
monitors the Chicago PM boards, he is a nice guy and answers questions.<br>
<br>
<br>
Eric<br>
<div><div></div><div class="h5"><br>
<br>
<br>
On Mon, Nov 1, 2010 at 11:00 PM, John Warner &lt;<a href="mailto:jwarner@texas.net">jwarner@texas.net</a>&gt; wrote:<br>
&gt; All,<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; It’s been a while since I did any Perl programming and I could use a<br>
&gt; pointer.  I work as a lab admin at Dell where one of my job duties is to<br>
&gt; order equipment for the various teams I support.  The process works like<br>
&gt; this:  we have the teams configure a system in a shopping cart at Dell.com<br>
&gt; then submit the shopping cart to the lab admins.  We, the lab admins, take<br>
&gt; the information from the cart (quantity, SKUs, and descriptions), do a whole<br>
&gt; bunch of manual manipulation and then paste the processed info into a tool<br>
&gt; we use for internal ordering.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; The problem:<br>
&gt;<br>
&gt; I have been using Win32::Watir to interact with <a href="http://dell.com" target="_blank">dell.com</a> to navigate to the<br>
&gt; SKUs in a shopping cart.  I have thus far been unable to get data in a<br>
&gt; format I can use from the shopping cart.  I get some of the HTML but not the<br>
&gt; stuff in the frame with the SKUs when I implement HTML::Parser start.  I can<br>
&gt; get the information I am after with the Parser text function but without any<br>
&gt; kind of separation that I could write a useful regex to separate.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; my $url =<br>
&gt; “<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" target="_blank">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>”;<br>

&gt;<br>
&gt;<br>
&gt;<br>
&gt; my $ie = Win32::Watir-&gt;new( visible =&gt; 1, maximize =&gt; 0);<br>
&gt;<br>
&gt; print &quot;Pointing to IE to found URL\n&quot;;<br>
&gt;<br>
&gt; $ie-&gt;goto($url);<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; print &quot;Clicking \&quot;Detail View\&quot; link in basket\n&quot;;<br>
&gt;<br>
&gt; $ie-&gt;getLink(&#39;linktext:&#39;, qr/Detail View/)-&gt;Click;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; print &quot;Showing details of cart\n&quot;;<br>
&gt;<br>
&gt; $ie-&gt;getLink(&#39;linktext:&#39;, qr/Show Details/)-&gt;Click;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; my $ordertext = $ie-&gt;text;<br>
&gt;<br>
&gt; #my $ordertext = $ie-&gt;html;<br>
&gt;<br>
&gt; print $ordertext;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; #do useful processing here…<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; The crux of my problem (I think) is that I don’t know what type of data<br>
&gt; (array, hash, etc) that $ie-&gt;html or $ie-&gt;text returns.  Perhaps if I knew<br>
&gt; that I could make headway on processing…<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Thanks for your time!<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; John Warner<br>
&gt;<br>
&gt; <a href="mailto:jwarner@texas.net">jwarner@texas.net</a><br>
&gt;<br>
&gt; H:  512.251.1270<br>
&gt;<br>
&gt; C:  512.426.3813<br>
&gt;<br>
&gt;<br>
&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt; Austin mailing list<br>
&gt; <a href="mailto:Austin@pm.org">Austin@pm.org</a><br>
&gt; <a href="http://mail.pm.org/mailman/listinfo/austin" target="_blank">http://mail.pm.org/mailman/listinfo/austin</a><br>
&gt;<br>
<font color="#888888"><br>
<br>
<br>
--<br>
Eric Ellington<br>
<a href="mailto:e.ellington@gmail.com">e.ellington@gmail.com</a><br>
_______________________________________________<br>
Austin mailing list<br>
<a href="mailto:Austin@pm.org">Austin@pm.org</a><br>
<a href="http://mail.pm.org/mailman/listinfo/austin" target="_blank">http://mail.pm.org/mailman/listinfo/austin</a><br>
</font></blockquote></div><br>