ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> perl.net
perl.net
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

Privacy Policy | Email Opt-out | Feedback | Syndication
© 2004 ActiveState, a division of Sophos All rights reserved