Thank you. After making a stupid syntax error. $code returns the following using Dumper.
$VAR1 = {
'StatusCode' => 0,
'Products' => [
{
'UnitType' => '100g',
'HealthierAlternativeProductId' => '',
'OfferPromotion' => "Price Drop Was \x{a3}
+1.13 Now \x{a3}1.00 ",
'ProductId' => '254881114',
'EANBarcode' => '5000175411118',
'MaximumPurchaseQuantity' => 99,
'CheaperAlternativeProductId' => '',
'ProductType' => 'QuantityOnlyProduct',
'PriceDescription' => "\x{a3}1.41 each",
'UnitPrice' => '1.41',
'ImagePath' => 'http://img.tesco.com/Groce
+ries/pi/118/5000175411118/IDShot_90x90.jpg',
'Price' => 1,
'BaseProductId' => '50043662',
'Name' => 'Oxo 12 Chicken Stock Cubes 71G'
+,
'OfferValidity' => 'valid from 30/7/2012 u
+ntil 9/9/2012',
'OfferLabelImagePath' => 'http://www.tesco
+.com/Groceries/UIAssets/I/Sites/Retail/Superstore/Online/Product/pos/
+save.png'
}
],
'TotalProductCount' => 1,
'PageNumber' => 0,
'TotalPageCount' => 1,
'StatusInfo' => 'Command Processed OK',
'PageProductCount' => 1
I am now looking at a few links to understand references. But to be honest I am not sure I understand what got returned. A Hash or an Array.
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.