in reply to Re: Using an undefined value as a hashref
in thread Using an undefined value as a hashref
I don't think that's totally true. The variable name is not available until the next statement, but the variable itself is. Otherwise, I don't see how the following two statements would work:
open(my $fh, ...); read($fh, my $buf='', ...);
I think the problem here is that you can't auto-vivify the lvalue returned by my. Can anyone confirm or deny any of this?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Using an undefined value as a hashref
by phaylon (Curate) on Sep 10, 2005 at 20:13 UTC |