In testlib.pl, write:
$| = 1; sub test{ $var = "Lord only knows if this will work..."; } 1;
In your main program, write.
require 'testlib.pl'; $| = 1; print "Content-type: text/html\n\n"; test(); print "$var"; exit;
In reply to Re: shared variables
by gzayzay
in thread shared variables
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |