|
|
| No such thing as a small change | |
| PerlMonks |
Catalyst request handlingby redlemon (Hermit) |
| on Nov 22, 2005 at 10:44 UTC ( [id://510833]=perlquestion: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.redlemon has asked for the wisdom of the Perl Monks concerning the following question: Fellow monks, I'm starting with Catalyst and I'm confused at the moment about how catalyst handles my request. Basically I ran:
And edited 'lib/Greet/C/Greeting.pm' so it looks like this:
Now running a couple of scenarios, I get:
Now, scenario 1 is as expected. I didn't change the main file and it presents the default blurb. Scenario 2 is also as expected, I run the controller with the say request and it answers me back with the arguments. But what about scene 3? Why didn't that strip the namespace from the arguments? And I'm really confused about scene 4. I would have expected that to print the same as 1. Can someone explain this behaviour to me? --
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||