in reply to Neverending Foreach Loop
$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} ); } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Neverending Foreach Loop
by ~~David~~ (Hermit) on Jul 12, 2007 at 23:12 UTC | |
by GrandFather (Saint) on Jul 12, 2007 at 23:28 UTC | |
by dsheroh (Monsignor) on Jul 13, 2007 at 06:25 UTC |