Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Web Services

by packetstormer (Monk)
on Jun 20, 2013 at 11:07 UTC ( [id://1039948]=note: print w/replies, xml ) Need Help??


in reply to Web Services

Thanks for the replies.

I have query though (and I realise this might seem like a newbie query!) but if I was to use path info for resource access would I need to have a corresponding script in each directory on my webserver? That is, "/id" directory contains it's own id.pl "/details" contains the details.pl script?

Replies are listed 'Best First'.
Re^2: Web Services
by derby (Abbot) on Jun 20, 2013 at 12:26 UTC

    No, you do not. You could have it as /cgi-bin/script_name/id -- and then use CGI's path_info method to get the appropriate info. If you're really into it, I would recommend Dancer or Mojolicious over bare-bones CGI. One of the big wins for those two frameworks are the router DSL they provide that abstracts all that low-level path_info/param handling away.

    Also, since you're really at the beginning web developer stage, seek out a local Perl Mongers meeting for assistance.

    -derby
      Thanks derby - there is no Perl Mongers meet in my country though! I will struggle on!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2024-04-18 01:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found