Re: Current problems

2001-02-28 Thread Derek R. Price
Akim Demaille wrote: # Now do all the work on each file. foreach my $am_file (@input_files) { if (! -f ($am_file . '.am')) { am_error ("\`" . $am_file . ".am' does not exist"); } else { generate_makefile ($output_files{$am_file}, $am_file); } }

Re: Current problems

2001-02-28 Thread Akim Demaille
"Derek R. Price" [EMAIL PROTECTED] writes: Only a global is going to be seen within a separate function... Right, but `my' at the top level is a global. The problem was really related to the specific semantics of foreach.

Re: Current problems

2001-02-28 Thread Derek R. Price
Akim Demaille wrote: "Derek R. Price" [EMAIL PROTECTED] writes: Only a global is going to be seen within a separate function... Right, but `my' at the top level is a global. The problem was really related to the specific semantics of foreach. Huh. You're right. I didn't believe you,

Re: Current problems

2001-02-26 Thread Akim Demaille
Akim Demaille [EMAIL PROTECTED] writes: Is there anything special about foreach loops? man perlsyn Foreach Loops The `foreach' loop iterates over a normal list value and sets the variable VAR to be each element of the list in turn. If the variable is preceded