Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Web Services

by packetstormer (Monk)
on Jun 20, 2013 at 11:07 UTC ( #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?


Comment on Re: Web Services
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
Node Status?
node history
Node Type: note [id://1039948]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2014-09-21 08:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (167 votes), past polls