fbicknel has asked for the wisdom of the Perl Monks concerning the following question:
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?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Obscure ${foo} reference
by rwstauner (Acolyte) on Sep 10, 2011 at 19:48 UTC | |
by LanX (Saint) on Sep 10, 2011 at 20:24 UTC |