<div dir="ltr">No caso, eu não tinha reparado.<div><br></div><div>o modulo não precisa ir no qw//.</div><div><br></div><div>Coloque o "<span style="font-family:arial,sans-serif;font-size:13px">with 'CatalystX::AuthenCookie';" depois do use Catalyst qw/ ... /. assim o moose vai importar¹ as funções desse CatalystX junto com o object do </span><span style="font-family:arial,sans-serif;font-size:13px">Catalyst.</span></div>

<div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px">¹ </span><a href="http://search.cpan.org/dist/Moose/lib/Moose/Manual/Roles.pod#WHAT_IS_A_ROLE?">http://search.cpan.org/dist/Moose/lib/Moose/Manual/Roles.pod#WHAT_IS_A_ROLE?</a></div>

</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jul 22, 2013 at 2:43 PM, Ricardo Alcantara <span dir="ltr"><<a href="mailto:alcantarafox@yahoo.com.br" target="_blank">alcantarafox@yahoo.com.br</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Seria isso?<br>
<br>
package Admin;<br>
use Moose;<br>
use namespace::autoclean;<br>
<br>
use Catalyst::Runtime 5.80;<br>
<br>
# Set flags and add plugins for the application.<br>
#<br>
# Note that ORDERING IS IMPORTANT here as plugins are initialized in order,<br>
# therefore you almost certainly want to keep ConfigLoader at the head of the<br>
# list if you're using it.<br>
#<br>
#         -Debug: activates the debug mode for very useful log messages<br>
#   ConfigLoader: will load the configuration from a Config::General file in the<br>
#                 application's home directory<br>
# Static::Simple: will serve static files from the application's root<br>
#                 directory<br>
<br>
use Catalyst qw/<br>
    -Debug<br>
    ConfigLoader<br>
    Static::Simple<br>
/;<br>
<br>
extends 'Catalyst';<br>
<br>
our $VERSION = '0.01';<br>
<br>
# Configure the application.<br>
#<br>
# Note that settings in admin.conf (or other external<br>
# configuration file that you set up manually) take precedence<br>
# over this when using ConfigLoader. Thus configuration<br>
# details given here can function as a default configuration,<br>
# with an external configuration file acting as an override for<br>
# local deployment.<br>
<br>
__PACKAGE__->config(<br>
    name => 'Admin',<br>
    # Disable deprecated behavior needed by old applications<br>
    disable_component_resolution_<u></u>regex_fallback => 1,<br>
    enable_catalyst_header => 1, # Send X-Catalyst header<br>
);<br>
<br>
# Start the application<br>
__PACKAGE__->setup();<br>
=encoding utf8<br>
<br>
=head1 NAME<br>
<br>
Admin - Catalyst based application<br>
<br>
=head1 SYNOPSIS<br>
<br>
    script/<a href="http://admin_server.pl" target="_blank">admin_server.pl</a><br>
<br>
=head1 DESCRIPTION<br>
<br>
[enter your description here]<br>
<br>
=head1 SEE ALSO<br>
<br>
L<Admin::Controller::Root>, L<Catalyst><br>
<br>
=head1 AUTHOR<br>
<br>
Ricardo,,,<br>
<br>
=head1 LICENSE<br>
<br>
This library is free software. You can redistribute it and/or modify<br>
it under the same terms as Perl itself.<br>
<br>
=cut<br>
<br>
1;<div class="HOEnZb"><div class="h5"><br>
<br>
=begin disclaimer<br>
  Sao Paulo Perl Mongers: <a href="http://sao-paulo.pm.org/" target="_blank">http://sao-paulo.pm.org/</a><br>
SaoPaulo-pm mailing list: <a href="mailto:SaoPaulo-pm@pm.org" target="_blank">SaoPaulo-pm@pm.org</a><br>
L<<a href="http://mail.pm.org/mailman/listinfo/saopaulo-pm" target="_blank">http://mail.pm.org/mailman/<u></u>listinfo/saopaulo-pm</a>><br>
=end disclaimer<br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div><span style="color:rgb(51,51,51);font-size:x-small">Saravá,</span></div><div><span style="color:rgb(51,51,51);font-size:x-small">Renato CRON</span></div>

<div><div style="text-align:right"><font size="1" color="#333333"><a href="http://www.renatocron.com/blog/" target="_blank">http://www.renatocron.com/blog/</a></font></div></div><div style="text-align:right"><font size="1" color="#333333"><a href="http://twitter.com/#!/renato_cron" target="_blank">@renato_cron</a></font></div>


</div>