Simple question, but this is really puzzling me. Why does this work?
use strict; use warnings; open my $fh, "somefile"; my $sc = *$fh{IO}; print <$sc>;
I thought the *FOO{THING} syntax only worked with package variables.
In reply to *FOO{THING} syntax used on a lexical variable by revdiablo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |