Topic: Ruby and cgi scripts

Hi,

I have a question.

I have a ruby on rails application and a friend of mine has written a cgi perl script for me.

Where do I put the perl script in the file system and how do I call it from the ruby application ?

Thank you in advance for your help

Re: Ruby and cgi scripts

You could "shell out" and call it one of three ways:
1) using backticks "`" around the perl command

`perl code.pl`

2) using system()

system("perl code.pl")

3) using %x{}

%x{"perl code.pl"}

Re: Ruby and cgi scripts

ya its right  u can use replicant44 idea.
i have created one of my web application ,with RailsTeam excels in building innovative web applications using Ruby on rails. http://www.railsteam.com