Re: Include variables from external perl script

2007-11-01 Thread Ron Bergin
On Oct 30, 6:50 pm, [EMAIL PROTECTED] (Howa) wrote: > On 10 30 , 9 38 , [EMAIL PROTECTED] (Ron Bergin) wrote: > > > On Oct 30, 3:34 am, [EMAIL PROTECTED] (Jeff Pang) wrote: > > > In addition to changing 'my' to our' in Config.pl, you'll also need to > > add the 'our $value;' to Script.pl > > yes

Re: Include variables from external perl script

2007-10-31 Thread howa
On 10 30 , 9 38 , [EMAIL PROTECTED] (Ron Bergin) wrote: > On Oct 30, 3:34 am, [EMAIL PROTECTED] (Jeff Pang) wrote: > > In addition to changing 'my' to our' in Config.pl, you'll also need to > add the 'our $value;' to Script.pl > yes you are right, I need to include `our` twice to make the code

Re: Include variables from external perl script

2007-10-30 Thread Ron Bergin
On Oct 30, 7:50 am, [EMAIL PROTECTED] (Paul Lalli) wrote: > On Oct 30, 9:38 am, [EMAIL PROTECTED] (Ron Bergin) wrote: > > > > On 10/30/07, howa <[EMAIL PROTECTED]> wrote: > > > > > Consider the example below... > > > > > Config.pl > > > > == > > > > > #!/usr/bin/perl -w > > > > > my $value = "a

Re: Include variables from external perl script

2007-10-30 Thread Paul Lalli
On Oct 30, 1:51 pm, [EMAIL PROTECTED] ([EMAIL PROTECTED]) wrote: > On Oct 30, 2:50 pm, [EMAIL PROTECTED] (Paul Lalli) wrote: > > > If there is no strict, 'our' is a no-op. > > Not entirely true. The scope of a variable declared with our is > different from one that's not needed to be declared beca

Re: Include variables from external perl script

2007-10-30 Thread Paul Lalli
On Oct 30, 1:51 pm, [EMAIL PROTECTED] ([EMAIL PROTECTED]) wrote: > On Oct 30, 2:50 pm, [EMAIL PROTECTED] (Paul Lalli) wrote: > > > If there is no strict, 'our' is a no-op. > > Not entirely true. The scope of a variable declared with our is > different from one that's not needed to be declared beca

Re: Include variables from external perl script

2007-10-30 Thread [EMAIL PROTECTED]
On Oct 30, 2:50 pm, [EMAIL PROTECTED] (Paul Lalli) wrote: > If there is no strict, 'our' is a no-op. Not entirely true. The scope of a variable declared with our is different from one that's not needed to be declared because use strict is not in use. -- To unsubscribe, e-mail: [EMAIL PROTECTED

Re: Include variables from external perl script

2007-10-30 Thread Paul Lalli
On Oct 30, 9:38 am, [EMAIL PROTECTED] (Ron Bergin) wrote: > > On 10/30/07, howa <[EMAIL PROTECTED]> wrote: > > > > Consider the example below... > > > > Config.pl > > > == > > > > #!/usr/bin/perl -w > > > > my $value = "abc"; > In addition to changing 'my' to our' in Config.pl, you'll also need

Re: Include variables from external perl script

2007-10-30 Thread Ron Bergin
On Oct 30, 3:34 am, [EMAIL PROTECTED] (Jeff Pang) wrote: > On 10/30/07, howa <[EMAIL PROTECTED]> wrote: > > > Consider the example below... > > > Config.pl > > == > > > #!/usr/bin/perl -w > > > my $value = "abc"; > > change 'my' to 'our'. > > > > > 1; > > > Script.pl > > == > > require "Con

Re: Include variables from external perl script

2007-10-30 Thread Jeff Pang
On 10/30/07, howa <[EMAIL PROTECTED]> 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. > >

Include variables from external perl script

2007-10-30 Thread howa
Consider the example below... Config.pl == #!/usr/bin/perl -w my $value = "abc"; 1; Script.pl == require "Config.pl"; print $value; # How to do this, beside using .pm? Thanks. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http:/