Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
then test.pl calls up the library:testlib.pl: my $var = "Lord only knows if this will work..."; 1;
Any help in knowing what I should have done...#!/usr/bin/perl -w use strict; use CGI::Carp qw(fatalsToBrowser warningsToBrowser); use CGI ':standard'; require 'testlib.pl'; print "Content-type: text/html\n\n"; print "$var"; exit;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: shared variables
by CountOrlok (Friar) on Mar 13, 2006 at 14:45 UTC | |
|
Re: shared variables
by japhy (Canon) on Mar 13, 2006 at 15:40 UTC | |
by Anonymous Monk on Mar 14, 2006 at 10:08 UTC | |
by CountOrlok (Friar) on Mar 14, 2006 at 16:39 UTC | |
by Anonymous Monk on Mar 14, 2006 at 18:13 UTC | |
|
Re: shared variables
by gzayzay (Sexton) on Mar 13, 2006 at 15:19 UTC |