If you're storing handles in an array or hash, <...> you will have to use a block returning the filehandle value instead
Before:
print $introsh{$intro} $line;
After:
print {$introsh{$intro}} $line;
In reply to Re: using a variable name for a filehandle
by ateague
in thread using a variable name for a filehandle
by msh210
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |