$file-> defectdata looks like a function call and is likely to return something different each time it's called. Maybe what you want to do is:
foreach (@files) { $file = "$klarfdir" . "\\" . "$_"; $file = Klarf::Parser->new($file); my %result = %{ $file->defectdata () }; foreach ( keys %result ) { print( $result{$_}->{XINDEX} ); } }
In reply to Re: Neverending Foreach Loop
by GrandFather
in thread Neverending Foreach Loop
by ~~David~~
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |