in reply to Re^2: Implicit references? module -> feature -> pragma -> "Perl8" ?
in thread Implicit references? module -> feature -> pragma -> "Perl8" ?
I do this all the time because if I have an array of @stuff and a hash of the same %stuff I think they should both be called stuff. If I need a variable about stuff I'll call that $stuff too.
it's considered bad style to reuse the same symbol for different types
Considered by who?
if we want to pass an @arr to a function we need to explicitly reference it \@arr and inside the function we always need to explicitly dereference it.
We don't need to do that at all, unless @INC is huge:
perl -le 'sub INC { print for @_ } INC(@INC)'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Implicit references? module -> feature -> pragma -> "Perl8" ?
by LanX (Saint) on May 12, 2026 at 22:59 UTC | |
by hippo (Archbishop) on May 13, 2026 at 09:16 UTC | |
by LanX (Saint) on May 13, 2026 at 12:22 UTC | |
by LanX (Saint) on May 13, 2026 at 13:36 UTC | |
|
Re^4: Implicit references? module -> feature -> pragma -> "Perl8" ?
by Anonymous Monk on May 12, 2026 at 22:10 UTC |