Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: What does Mojolicious do exactly and is it right for me?

by Anonymous Monk
on Apr 30, 2013 at 07:30 UTC ( #1031341=note: print w/ replies, xml ) Need Help??


in reply to What does Mojolicious do exactly and is it right for me?

Arg, I hate to ask such a dumb question ... how it differs from CGI, and so on. I was hoping that someone might give me some good examples of what they'd use Mojolicious for; what its advantages are, and so on. Basically, is it right for what I am doing?

Um, go to http://mojolicio.us/, watch the slideshow, watch the video .... just like CGI.pm takes care of CGI protocol stuff for you (header/param/redirect), mojolicious takes care of the exact same things using , except instead of writing if (my $session = param('session')) { ... } elsif (my $host = param('host')) { ... you write

get '/' => \&default; get '/cookies', \&show_cookies; post '/preview', \&do_preview; ...

http://mojocasts.com/e1


Comment on Re: What does Mojolicious do exactly and is it right for me?
Download Code
Re^2: What does Mojolicious do exactly and is it right for me?
by Pizentios (Scribe) on Apr 30, 2013 at 13:29 UTC
    I second watching the mojocasts they helped me alot when i started out with mojolicious.

    I haven't used CGI much before so my ability to compare the two isn't quite there, but i find development in mojolicious very quick once you learn the lay of the land.
    -Pizentios

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1031341]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (4)
As of 2015-07-04 00:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (57 votes), past polls