Re: Include variables from external perl script
- From: pangj@xxxxxxxxxxxxx (Jeff Pang)
- Date: Tue, 30 Oct 2007 19:34:05 +0800
On 10/30/07, howa <howachen@xxxxxxxxx> wrote:
Consider the example below...
Config.pl
======
#!/usr/bin/perl -w
my $value = "abc";
change 'my' to 'our'.
.
1;
Script.pl
======
require "Config.pl";
print $value; # How to do this, beside using .pm?
Thanks.
--
To unsubscribe, e-mail: beginners-unsubscribe@xxxxxxxx
For additional commands, e-mail: beginners-help@xxxxxxxx
http://learn.perl.org/
- Follow-Ups:
- Re: Include variables from external perl script
- From: Ron Bergin
- Re: Include variables from external perl script
- References:
- Include variables from external perl script
- From: Howa
- Include variables from external perl script
- Prev by Date: perl with mysql which takes a file as a input that contains the info to create the tables
- Next by Date: Re: perl with mysql which takes a file as a input that contains the info to create the tables
- Previous by thread: Include variables from external perl script
- Next by thread: Re: Include variables from external perl script
- Index(es):