0

Ampersand in SOAP body

Posted by admin on Feb 17, 2011 in perl, Unix

Broadworks OCI interface uses SOAP as its transport. In the past, I’m sure I replaced ampersands in the request body with the html equivalent & just using the encode function. $req = HTML::Entities::encode($xmlrequest); This has stopped working and hangs the request. I have found a work around using $req = HTML::Entities::encode($xmlrequest); $req =~ s/&/&/g;

 
0

Cleaning up files

Posted by admin on Jul 21, 2009 in perl

This is a quick perl one liner to delete files older than 3 days map { unlink $_ if -M > 3 } glob (“old_path/*.bak”);

Tags:

Copyright © 2008-2017 Brinsmead Data Services All rights reserved.