Re: Include variables from external perl script



On 10 30 , 9 38 , r...@xxxxxxxxxx (Ron Bergin) wrote:
On Oct 30, 3:34 am, pa...@xxxxxxxxxxxxx (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 work
if using strict.

however, this seems to be a little dummy to declare the same variable
twice, any better method(s)?

thanks,

.



Relevant Pages

  • Re: return truely random number?
    ... > frame (twice in a second): ... Warnings and strict would've told you of this problem. ...
    (comp.lang.perl.misc)
  • Re: perl script
    ... > I have a billing program that generates dynamic files in ... > number and never the same twice. ... use strict; ... use warnings; ...
    (comp.lang.perl.misc)
  • RE: Possible scoping problem
    ... How can I declare something twice as two different types? ... Dim WSO as excel.worksheet 'For early binding ...
    (microsoft.public.excel.programming)
  • Re: Initializing variable style question
    ... I myself interpret this as saying that initialization is recommended, along the lines that Philipp suggests. ... I just cannot bring myself to believe that setting a variable to the same value twice is a good idea. ... By the same reasoning, I don't explicitly put a call to "super" in constructors, or declare a no-arg constructor when it's the only one. ...
    (comp.lang.java.programmer)
  • Re: Bergeron Yamaha Trumpets
    ... But check it twice, just in case. ... Then a judge will declare double jeopardy and throw the case out. ...
    (rec.music.makers.trumpet)