What is this scalar slot (and he uses something similar a few lines later for a hash slot)?# Store the filename in the scalar slot ${*$fh} = $path;
Later in ->filename, he pulls the value from this 'slot' for the filename.
We know that *$fh evaluates to a string, but how does he get away with assigning to this variable when use strict is on?
In reply to Obscure ${foo} reference by fbicknel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |