in reply to foreach $1
Can anyone guess of a special var other than $_ where aliasing might make sense?
Otherwise shouldn't we make a feature request to throw a compilation error?
(At least under strict or warnings?)
Hmm ...
Should be noted here that a special var makes the whole typeglob special.
I.e. if $a is a special var then @a and %a will act special too, even without carrying a meaning.
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: foreach $1
by kcott (Archbishop) on Jun 06, 2020 at 17:50 UTC | |
by LanX (Saint) on Jun 06, 2020 at 21:52 UTC | |
by choroba (Cardinal) on Jun 06, 2020 at 23:47 UTC | |
by Discipulus (Canon) on Jun 07, 2020 at 19:36 UTC | |
by LanX (Saint) on Jun 07, 2020 at 19:43 UTC | |
| |
by LanX (Saint) on Jun 07, 2020 at 02:19 UTC | |
by ikegami (Patriarch) on Jun 08, 2020 at 22:12 UTC | |
| |
|
Re^2: foreach $1
by ikegami (Patriarch) on Jun 08, 2020 at 22:25 UTC | |
by LanX (Saint) on Jun 08, 2020 at 23:55 UTC |