Rest::Client is a thin wrapper over HTTP::Request and LWP::UserAgent. You may find better documentation in those modules on how to include a file argument in your request.
Comment on Re^3: how to post an xml using REST::Client
Hi spazm. Thank you for the responses. i tried to go through the modules you have specified, but without much luck. May i request you to kindly help me update the below code you have provided to send the xml(sample.xml)??