Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Catalyst: Users

local helper?

 

 

Catalyst users RSS feed   Index | Next | Previous | View Threaded


orasnita at gmail

Nov 25, 2009, 3:43 AM

Post #1 of 4 (933 views)
Permalink
local helper?

Hi,

I've created in MyApp/lib the module

MyApp/lib/Catalyst/Helper/Model/MyHelper.pm

But I can't run it using

perl script/myapp_create.pl model MyModel MyHelper

because myapp_create.pl doesn't add the local lib to @INC so it can't find
it.

Is there any reason the local lib is not added to @INC in myapp_create.pl,
or it is added but I am doing something wrong?

Thanks.

Octavian


_______________________________________________
List: Catalyst [at] lists
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst [at] lists/
Dev site: http://dev.catalyst.perl.org/


bobtfish at bobtfish

Nov 25, 2009, 5:16 AM

Post #2 of 4 (859 views)
Permalink
Re: local helper? [In reply to]

Octavian Râşniţă wrote:
> because myapp_create.pl doesn't add the local lib to @INC so it can't
> find it.

Why would you want the helper in your application? I can't think of any
task where an app-specific helper would be any use..

Cheers
t0m


_______________________________________________
List: Catalyst [at] lists
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst [at] lists/
Dev site: http://dev.catalyst.perl.org/


orasnita at gmail

Nov 25, 2009, 5:35 AM

Post #3 of 4 (860 views)
Permalink
Re: local helper? [In reply to]

From: "Tomas Doran" <bobtfish [at] bobtfish>
Octavian Râşniţă wrote:
> because myapp_create.pl doesn't add the local lib to @INC so it can't find
> it.

Why would you want the helper in your application? I can't think of any
task where an app-specific helper would be any use..


I just wanted to test locally a new version of
Catalyst::Helper::Model::Email before uploading it to CPAN without
installing it under the Perl directory. Not a big issue though.

Octavian


_______________________________________________
List: Catalyst [at] lists
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst [at] lists/
Dev site: http://dev.catalyst.perl.org/


rodrigolive at gmail

Nov 25, 2009, 7:21 AM

Post #4 of 4 (858 views)
Permalink
Re: local helper? [In reply to]

> But I can't run it using
>
> perl script/myapp_create.pl model MyModel MyHelper
>
> because myapp_create.pl doesn't add the local lib to @INC so it can't find
> it.
>
>
Have you tried:

perl -Ilib script/myapp_create.pl model MyModel MyHelper

Catalyst users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.