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
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
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
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
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
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
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
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
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.
>
>
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:/
10 matches
Mail list logo