in reply to Re^3: How to fetch the value using LWP:: UserAgent
in thread How to fetch the value using LWP:: UserAgent
Again its troubling on one place
my $xml = '<?xml version="1.0" encoding ="UTF-8"?><!DOCTYPE drl SYSTEM "http://172.XX.XXX.XXX:40500/lab/api/reserveRequest.dtd"><drl mode="normal" id="$Id"><id="1009"><attributes><attribute name="Clust" link="true" category="INV"><value>8</value></attribute></attributes></drl>';Here $Id is I am getting from another request and its declared globally but as request is in single quote it wont be able to get the value of $id , I have to use escape character or some interpolation method, tried a lot but vain..Can any one help
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: How to fetch the value using LWP:: UserAgent
by aitap (Curate) on Jul 17, 2012 at 07:29 UTC | |
by panapka (Initiate) on Jul 17, 2012 at 11:47 UTC |