SOAP WSDL example

2009-12-29 Thread Ram Prasad
Hi All, I am trying to use SOAP WSDL for the first time I am not even able to initialize the script I am not sure if the WSDL is valid. How do I check this ? --- #!/usr/bin/perl use SOAP::WSDL; use Data::Dumper; my $soap = SOAP::WSDL->new(wsdl=>'http://smytoday.com/psmw/psmw? WSDL'); --

get the matching regex pattern

2008-03-20 Thread Ram Prasad
I have a somewhat strange requirement I want to find if a regex matched what exactly matched to reproduce this -- my @x; $x[0] = 'chi+ld*'; $x[1] = '\sjoke'; $_=getinput(); # for test assume $_="This is a joke"; if(/($x[0]|$x[1])/){ print "Matched '$1' \n";

Re: Can I modify the contents of a file, without creating a new one?

2007-10-11 Thread Ram Prasad
On Oct 11, 2:37 pm, [EMAIL PROTECTED] (PeiYu Zeng) wrote: > Hello, > > Can I modify the contents of a file, without creating a new one? This is called inplace editing Possible but not recommended. do this { local(@ARGV) = ($file); $^I='.BAK'; # see perdoc perlvar while(<>){ # Do edit here

Re: Load Test a web site

2007-10-09 Thread Ram Prasad
On Oct 9, 12:54 pm, [EMAIL PROTECTED] (Jim Coyle) wrote: > Hi, > > I am an beginner using Perl. > I need to load test a new web site - does anyone have some very basic > code that I could re-use? > Ideally I'm looking for something that simulates multiple users hitting > the web site at the same ti