Re: Include variables from external perl script
- From: mritty@xxxxxxxxx (Paul Lalli)
- Date: Tue, 30 Oct 2007 07:50:11 -0700
On Oct 30, 9:38 am, r...@xxxxxxxxxx (Ron Bergin) wrote:
On 10/30/07, howa <howac...@xxxxxxxxx> wrote:
Consider the example below...
Config.pl
======
#!/usr/bin/perl -w
In addition to changing 'my' to our' in Config.pl, you'll also need tomy $value = "abc";
add the 'our $value;' to Script.pl
Blatantly untrue. The OP was not using strict. 'our' is only
required to be able to refer to global variables without qualifying
them when strict 'vars' is in use. If there is no strict, 'our' is a
no-op.
Paul Lalli
.
- Follow-Ups:
- Re: Include variables from external perl script
- From: Ron Bergin
- Re: Include variables from external perl script
- From: Nobull67@xxxxxxxxx
- Re: Include variables from external perl script
- References:
- Include variables from external perl script
- From: Howa
- Re: Include variables from external perl script
- From: Jeff Pang
- Re: Include variables from external perl script
- From: Ron Bergin
- Include variables from external perl script
- Prev by Date: Re: Perl 5.8.6 bug in open()?
- Next by Date: Re: Perl 5.8.6 bug in open()?
- Previous by thread: Re: Include variables from external perl script
- Next by thread: Re: Include variables from external perl script
- Index(es):
Relevant Pages
|