in reply to Perl IPC using dynamic handles in hash
Switch that to:
chomp( $mystring = readline( $fhr{ $host } ) );
In theory, you can also use curlies to disambiguate:
chomp( $mystring = < {$fhr{$host}} > );
but I've encountered situations when that didn't seem to work. readline seems preferable anyway.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Perl IPC using dynamic handles in hash
by gansvv (Initiate) on Jun 08, 2011 at 17:41 UTC |