CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

Home: Perl Programming Help: Advanced:
Help getting directions.



Jan 27, 2009, 1:10 PM

Post #1 of 4 (3901 views)
Help getting directions. Can't Post

Hi guys,
First of all I want to thank everyone (Fish, Kevin and Shawn) ... for helping me out a lot these past few weeks. Without you guys and this great forum I wouldn't have acquired the wee bit of knowledge I have now.

Well I'm moving on from just perl scripts and I wanted to know if anyone can direct me to some good tutorials.

My basic Idea:

I'm creating a statistical webtool using the frontend as PHP and AJAX.
I'm using dynamic PHP forms that call PERL scripts and pass the variables. These PERL scripts query into a MySQL database using the passed variables and use the data along with some Perl Modules to do calculations. The result of these calculations are passed to another PHP page that incorporates JPGraph to graph out the analysis. The graph.. along with text data are then called and passed back to the Main PHP page.

Hope I didn't lose you along the way. :)

Well my questions or request is... Is there a way to pass variables from PHP to Perl and back to PHP?

I've been reading and found this tut.

PHP Code:

exec('./ $foo');


and a perl script with this:

#!/usr/bin/perl -s 
use vars ($foo);

if ($foo eq bar){
print $foo;

How can I pass variables from perl to php ... especially if it's a perl script with a loop?

Thanks for any help rendered.

(This post was edited by cuboidgraphix on Jan 27, 2009, 1:13 PM)


Jan 27, 2009, 2:45 PM

Post #2 of 4 (3895 views)
Re: [cuboidgraphix] Help getting directions. [In reply to] Can't Post

I don't know much about PHP but you can't pass variables to or from Perl. What you can do is pass data. This is done with InterProcess Communications (IPC). See `perldoc perlipc` for details.

If you want to do everything in Perl, HTML::Mason is the module for creating web sites.

GD::Graph is used to create graphs and GD::Graph3D for three-dimensional ones.


I love Perl; it's the only language where you can bless your thingy.

Perl documentation is available at The list of standard modules and pragmatics is available in perlmodlib.

Get Markup Help. Please note the markup tag of "code".


Jan 27, 2009, 5:11 PM

Post #3 of 4 (3892 views)
Re: [cuboidgraphix] Help getting directions. [In reply to] Can't Post

There are some PHP modules listed on CPAN. I've never used them and have no idea if they are for but you can take a look at them.


Jan 27, 2009, 5:29 PM

Post #4 of 4 (3890 views)
Re: [KevinR] Help getting directions. [In reply to] Can't Post

Cool ... thanks guys. I'll take a look at both of them. For the meantime, since I need to submit a report by the end of the week, I'll just go ahead and make my reports with excel and VB .. but this lil webtool of mine would really come in handy for dynamic generation of all sorts of reports.

So thanks again.. Wish me luck.. :)


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives