in reply to my within brackets
or(my $line); # scoped outside of `while` block while ($line = <>) { }
Treating my in a distributive way inside the parens shows your implicit understanding. I think. :-)while (my $line = <>) { # $line scoped only inside of `while` block }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: my within brackets
by ikegami (Patriarch) on Oct 15, 2021 at 14:25 UTC |