Regular expression FAILs when exising the "[]"
by 1 other posts by this author
Jun 26 2005 2:07AM messages near this date
view in the new Beta List Site
RE: How to use the existing perl module in perlaspx?
|
Perl.Net, PerlApp fail building executable in activestate PDK on windows
FRAMEWORK hello, everyone.
Today I have downloaded the perlaspx and trying to wrap my perl codes into web services, bu
t I got a bug here: the perl regular expression doesn't work well when exising the "[]" in i
t. For example, the following is the source codes:
...
=for interface
[WebMethod]
string POS(string value);
=cut
sub POS {
my($this,$value) = @_;
$_ = $value;
s/([ab])/ kkk /g; #here, I just want to change the "a"or "b" to " kkk "
return $_;
...
}
It will report a mistake when I test the webservice. But if removing the "[]", it will be g
ood.
Have someone met the same problme? and How to solve it? Thank you.
yoursï¼?
ã??ã??ã??ã??ã??ã??ã??ã??cwh2k@[...].com
ã??ã??ã??ã??ã??ã??ã??ã??ã??ã??2005-
06-26
_______________________________________________
Perl.NET mailing list
Perl.NET@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
|