in reply to Problem with using file handle in hash
The diamond operator doesn't like compound variables; but you can work around that by using its function form: readline. This works fine:
while( readline( $Some{compound}{variable}[1] ) ) { ... }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Problem with using file handle in hash
by stevieb (Canon) on Jun 24, 2016 at 11:00 UTC | |
|
Re^2: Problem with using file handle in hash
by sophate (Beadle) on Jun 24, 2016 at 05:17 UTC |