Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: learning by example; please explain what this code is doing?

by tangent (Parson)
on Mar 30, 2016 at 19:05 UTC ( [id://1159162]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    http://localhost/script.cgi/=
    
  2. or download this
    GET qr{^/=$} => sub {
        print $q->header('text/html');
        print $q->h1('REST API Documentation');
        print $q->p('Here is a list of what you can do:');
    
  3. or download this
    my $regex = qr{^/=$};
    my $coderef = sub {
    ...
        # etc.
    };
    GET( $regex, $coderef );
    
  4. or download this
    $code->();
    exit;
    
  5. or download this
    GET qr{^/=/model/book/id/([\d-]+)$} => sub {
        my $id = $1;
        # etc.
    
  6. or download this
    http://localhost/script.cgi/=/model/book/id/10566
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (7)
As of 2024-04-25 08:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found