in reply to Re^4: use has it's own scope?
in thread use has it's own scope?
Arguably it should be disallowed
Why? LIST here is the standard argument passing mechanism. Making an exception for a my expression in an argument list or making an exception for expressions in import lists would be complicated and break symmetry of syntax, semantics, and implementation.
This is the piece that sundial's missing. It's a confusing combination of existing Perl behavior because it's uncommon and relatively useless, but it's valid syntax because of the way Perl works.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^6: use has it's own scope?
by Anonymous Monk on Aug 08, 2017 at 16:39 UTC | |
by chromatic (Archbishop) on Aug 08, 2017 at 16:48 UTC | |
by jdporter (Paladin) on Aug 08, 2017 at 18:42 UTC | |
by Eily (Monsignor) on Sep 08, 2017 at 13:41 UTC | |
by LanX (Saint) on Sep 08, 2017 at 14:13 UTC | |
by LanX (Saint) on Sep 06, 2017 at 09:30 UTC |