FAQ
Hi,

it seems, Regex actions don't work with use encoding 'utf8'.

Example:

# in some controller
use encoding 'utf8';
sub bar : Regex('\d+') { }

Running the test server gives:

$ script/foo_server.pl
Couldn't load "Foo::Controller::Root", "Unterminated attribute parameter
in attribute list at
/home/fw/tmp/Foo/script/../lib/Foo/Controller/Root.pm line 35, at end of
line
syntax error at /home/fw/tmp/Foo/script/../lib/Foo/Controller/Root.pm
line 35, at EOF
Compilation failed in require at
/usr/local/share/perl/5.8.7/Module/Pluggable/Fast.pm line 82.
" at /usr/local/share/perl/5.8.7/Module/Pluggable/Fast.pm line 84.
Compilation failed in require at script/foo_server.pl line 49.

Anyone else having this problem?


$ perl -v
This is perl, v5.8.7 built for i486-linux-gnu-thread-multi
(with 1 registered patch, see perl -V for more detail)

Catalyst's $Version: 5.66
encoding's $Version: 2.02


Bye, Frank

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupcatalyst @
categoriescatalyst, perl
postedApr 7, '06 at 9:26a
activeApr 7, '06 at 9:26a
posts1
users1
websitecatalystframework.org
irc#catalyst

1 user in discussion

Frank Wiegand: 1 post

People

Translate

site design / logo © 2022 Grokbase