[Catalyst] myapp_test.pl - running code from the command line

Jonathon Soong jon at investmentscience.com.au
Wed Nov 3 06:40:30 GMT 2010


> What kind of code do you actually want to run?
> Perhaps it would be smarter to put that code into the model and then
> run a perl script from cron that makes use of that model thus
> bypassing the HTML authentication (which might be ok considering the
> code is run from the system)

Yes I realise now it might make more sense in the Model, but at the moment it is in the Controller (it is someone else's code, so more difficult for me to refactor).

There are two questions I have then:
1. How do you call a Model's function from the command line?
2. Is there no way to call controller methods that require authentication?



More information about the Catalyst mailing list