Re: Setting up a SOAP server

2006-03-22 Thread Bjorn Van Blanckenberg
I changed the namespace that the client is sending to "http:// 200.0.1.153:8001/Server" and now I'am getting this error. com.ibm.websphere.sca.ServiceRuntimeException: caused by: SOAPAction shall match 'uri#method' if present (got 'createPDF', exp ected 'http://200.0.1.153:8001/Server#createP

Setting up a SOAP server

2006-03-22 Thread Bjorn Van Blanckenberg
I have a problem with setting up an SOAPserver. I have included how I set up my soapserver. #!/usr/bin/perl -w use strict; use Carp (); local $SIG{__WARN__} = \&Carp::cluck; $|++; use SOAP::Transport::HTTP; my $daemon = SOAP::Transport::HTTP::Daemon -> new (LocalAddr => 'queu

Re: xA0 ( decimal 160 ) in code fixed from email $_ =~ s/\xA0/ /g;

2006-03-22 Thread Tom Phoenix
On 3/22/06, Alan_C <[EMAIL PROTECTED]> wrote: > In emails I'm receiving from this list when I've copy/pasted into editor then > save the file as Perl script gives the file many of the decimal 160 (as > reported by perltidy) characters. Perl (when attempt to run said script) > reports such charact

xA0 ( decimal 160 ) in code fixed from email $_ =~ s/\xA0/ /g;

2006-03-22 Thread Alan_C
Short version: Copy/paste code from list emails brings undesired characters; I discovered a Perl fix for it. -- Detailed (and longer) version: Maybe my Kmail is doing it (I copy from Kmail and paste into editor). I tried two editors, Kate and Nedit so I don't think the editor is the cause. I

Re: substitute all but the last

2006-03-22 Thread Tom Phoenix
On 3/22/06, tom arnall <[EMAIL PROTECTED]> wrote: > could you explain in detail what the stuff in parens is about, i.e., > '?=.*\.' ? When the first thing inside the parentheses is a question mark, it's a sign that the parentheses are doing something special. s/\.(?=.*\.)/_/gs The perlre m

Re: substitute all but the last

2006-03-22 Thread tom arnall
Tom, John, could you explain in detail what the stuff in parens is about, i.e., '?=.*\.' ? thanks, tom arnall north spit, ca On Wednesday 22 March 2006 12:41 pm, Tom Phoenix wrote: > On 3/22/06, S.A. Birl <[EMAIL PROTECTED]> wrote: > > Im looking to subtitute all but the last . into _ > >

Re: substitute all but the last

2006-03-22 Thread S.A. Birl
On Mar 22, John W. Krahn ([EMAIL PROTECTED]) typed: > $ perl -e' > my @files = qw[ filename.jpg.pgp filename.2.jpg.pgp file._.jpg.pgp ]; > for my $file ( @files ) { > print "$file --> "; > $file =~ s/\.(?=.*\.)/_/g; > print "$file\n"; > } > ' > filename.jpg.pgp --> filename_jpg

Re: how to save a value ?

2006-03-22 Thread John W. Krahn
Gerard Robin wrote: > Hello, Hello, > this script does what is expected : > > #!/usr/bin/perl > use warnings; > # use strict; > > &matrix_read_file; > > print "@$_\n" foreach @MAT1; > print "@$_\n" foreach @$matrix_name; > > sub matrix_read_file > { > while (my $line = ) { > chomp $li

Re: substitute all but the last

2006-03-22 Thread Tom Phoenix
On 3/22/06, S.A. Birl <[EMAIL PROTECTED]> wrote: > Im looking to subtitute all but the last . into _ > ie: filename.jpg.pgp --> filename_jpg.pgp > ie: filename.2.jpg.pgp --> filename_2_jpg.pgp > ie: file._.jpg.pgp --> file__.pgp There are many ways to do this

Re: substitute all but the last

2006-03-22 Thread John W. Krahn
S.A. Birl wrote: > Im doing some file renaming. > > Im looking to subtitute all but the last . into _ > ie: filename.jpg.pgp --> filename_jpg.pgp > ie: filename.2.jpg.pgp --> filename_2_jpg.pgp > ie: file._.jpg.pgp --> file__.pgp > > > Ive tried about 10 different

substitute all but the last

2006-03-22 Thread S.A. Birl
Im doing some file renaming. Im looking to subtitute all but the last . into _ ie: filename.jpg.pgp --> filename_jpg.pgp ie: filename.2.jpg.pgp --> filename_2_jpg.pgp ie: file._.jpg.pgp --> file__.pgp Ive tried about 10 different expressions, but they've all

Re: printing a range of ip addresses

2006-03-22 Thread John W. Krahn
Harold Castro wrote: > Hi, Hello, > Can you tell me why this loop doesn't work??? > > #!/usr/local/bin/perl > use warnings; > use strict; > > our $hostpart = 1; > our $networkpart = 128; > $|=1; > >while ($networkpart <= 158){ > while ($hostpart <= 256){ > print "20

Re: how to save a value ?

2006-03-22 Thread Mr. Shawn H. Corey
Gerard Robin wrote: Hello, this script does what is expected : #!/usr/bin/perl use warnings; # use strict; &matrix_read_file; print "@$_\n" foreach @MAT1; print "@$_\n" foreach @$matrix_name; sub matrix_read_file { while (my $line = ) { chomp $line; next if $line =~ /^\s*$/; i

Re: Need to run a program concurrently by multiple users

2006-03-22 Thread Jeff Pang
> > I have a build script which needs to run by multiple > users(concurrently). Currently only one user can run this program.What are > the code changes to make this program run concurrently. > Could you give more details explaining about why only one user can run your script? -- J

how to save a value ?

2006-03-22 Thread Gerard Robin
Hello, this script does what is expected : #!/usr/bin/perl use warnings; # use strict; &matrix_read_file; print "@$_\n" foreach @MAT1; print "@$_\n" foreach @$matrix_name; sub matrix_read_file { while (my $line = ) { chomp $line; next if $line =~ /^\s*$/; if ($l

RE: printing a range of ip addresses

2006-03-22 Thread Jeff Pang
>How about > >#!/usr/bin/perl -w > >use strict; >use warnings; > >for( my $networkpart = 128; $networkpart <= 158; $networkpart++ ){ > for( my $hostpart = 0; $hostpart < 256; $hostpart++ ){ >print "202.90.$networkpart.$hostpart\n"; > } >} >__END__ > The '-w' option is not needed here since

Re: printing a range of ip addresses

2006-03-22 Thread nishanth ev
Edit your loop like this while ($networkpart <= 158){ while ($hostpart <= 256){ print "202.90.".$networkpart.".".$hostpart, "\n"; $hostpart++; } # #Change the $hostpart back to 0 # $hostpart=0; $networkpart++; } --- Harold Castro <[EMAIL PROTECTED]> wrote: > Hi, >

RE: printing a range of ip addresses

2006-03-22 Thread Thomas Bätzler
Hi, Harold Castro <[EMAIL PROTECTED]> asked: > Can you tell me why this loop doesn't work??? > > #!/usr/local/bin/perl > use warnings; > use strict; > > our $hostpart = 1; > our $networkpart = 128; That should probably be "my" instead of "our". > $|=1; > >while ($networkpart <

RE: printing a range of ip addresses

2006-03-22 Thread balan.ranganathan
I am seeing code optimization done inside the while loop. Thanks Best regards Bala -Original Message- From: Harold Castro [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 22, 2006 2:50 PM To: beginners@perl.org Subject: printing a range of ip addresses Hi, Can you tell me why this l

Re: printing a range of ip addresses

2006-03-22 Thread Alon Marx
Try setting the $hostpart to 1 just before the inner while loop :) On Wed, 2006-03-22 at 01:20 -0800, Harold Castro wrote: > Hi, > > Can you tell me why this loop doesn't work??? > > #!/usr/local/bin/perl > use warnings; > use strict; > > our $hostpart = 1; > our $networkpart = 128;

printing a range of ip addresses

2006-03-22 Thread Harold Castro
Hi, Can you tell me why this loop doesn't work??? #!/usr/local/bin/perl use warnings; use strict; our $hostpart = 1; our $networkpart = 128; $|=1; while ($networkpart <= 158){ while ($hostpart <= 256){ print "202.90.".$networkpart.".".$hostpart, "\n"; ++$hostpar

RE: regex one liner

2006-03-22 Thread stu meacham
Good question. I went to a script right away after the difficulty with the one-liner and returned to the command line syntax problem more out of curiosity than anything else. I'm a fan of the command line because once I get one that works all I need is the 'history' command and an up arrow key