Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Re: Perl 5.6.1 Regular Expression problems (UTF8 ?)

by Pitr (Novice)
on Jul 06, 2001 at 17:34 UTC ( [id://94458]=note: print w/replies, xml ) Need Help??


in reply to Re: Perl 5.6.1 Regular Expression problems (UTF8 ?)
in thread Perl 5.6.1 Regular Expression problems (UTF8 ?)

Thanks for the feedback so far. I tried to simulate the problem with the following piece of code:

#!/usr/bin/perl -w print "Content-Type: text/html\n\n"; my $value = "ciaoslave"; my $allowed = '[\w\d\s\-]{1,15}'; my $escape = "yes"; if($value =~ /^$allowed$/){ print (($escape eq "no") ? $value : quotemeta($value)); }else{ print "Fail!"; } print "\n";

When I call this script through a webbrowser it works.. and does not give the error that occurred earlier.

Perhaps the XML::Simple module effects the behaviour in some way ?

Thanks again,
- Pitr

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://94458]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2024-04-25 18:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found