in reply to Re: To read files from two dir
in thread To read files from two dir

I tried putting all the files together in one single dir,

my $SRC_DIR         =        "/pvc/ohdr/topology";

I did not get any errors such ” Global symbol "%lookup_F3" requires explicit package name…..” But when I tried with

my @dir = ("$VTIERBASE/pvc/ohdr/topology","$VTIERBASE/pvc/ohdr/instanc +e-0/preprocess"); foreach my $SRC_DIR(@dir) {

I get any errors such ” Global symbol "%lookup_F3" requires explicit package name…..” Also, I do not see any output on print statement

Replies are listed 'Best First'.
Re^3: To read files from two dir
by Fletch (Bishop) on Apr 13, 2022 at 18:26 UTC

    You persist in giving us snippets which show none of the variables you're getting in your error messages. You were told this two days ago (Re^3: To read files from two dir).

    On what planet do you believe that repeatedly posting unrelated truncated code samples could be useful in diagnosing your problems? It's possible that because of the block structure in SOME OTHER CODE YOU HAVEN'T SHOWN that adding that new for with its BLOCK could be changing the scoping somewhere down the line and invalidating or hiding a variable declaration. But we can't know that because no one has seen enough code with supporting context so we're stuck with generalities and handwaving guesses.

    Help us help you.

    /me mutters something about porcine singing . . .

    The cake is a lie.
    The cake is a lie.
    The cake is a lie.

    A reply falls below the community's threshold of quality. You may see it by logging in.
Re^3: To read files from two dir
by GrandFather (Saint) on Apr 13, 2022 at 21:08 UTC