Re: Include variables from external perl script



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/



.