develooper Front page | perl.beginners | Postings from January 2002

send data to a file.lib

From:
anthony
Date:
January 9, 2002 08:30
Subject:
send data to a file.lib
Message ID:
20020109162920.1750.qmail@onion.perl.org
Hi,

I would like to know how do we send data from data.cgi to a file.lib  and
get the data back in data.cgi and print it

like I'm just doing a simple addition to understand the process of send and
retreiving data.

like this

#!usr/bin...
use CGI;
$q= new CGI;
require "file.lib";
$number =$q->param('number');
##in file.lib i have a sub called add_number
add_number('$number');
## file.lib does the following $newnumber=$number+1;
print "$newnumber";
#end of script

Is that the way we have to do it?


Anthony





nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About