[Catalyst] use encoding 'utf8' and Regex actions

Frank Wiegand frank.wiegand at gmail.com
Fri Apr 7 11:26:39 CEST 2006


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



More information about the Catalyst mailing list