in reply to Re^3: Opinion: where Perl5 wasn't attractive for me
in thread Opinion: where Perl5 wasn't attractive for me
Python has no blockscoping, such that the second assignment is not considered an declaration cause the variable has already been intialized in the "wider" scope (file or function)
Perl has blockscoping such that a command like nonlocal would be needed far too often ... or more "headache" (sic) would be needed figure out a workaround.
Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Opinion: where Perl5 wasn't attractive for me
by SuicideJunkie (Vicar) on Nov 19, 2014 at 18:57 UTC | |
by LanX (Saint) on Nov 19, 2014 at 20:29 UTC | |
by SuicideJunkie (Vicar) on Nov 19, 2014 at 20:43 UTC | |
|
Re^5: Opinion: where Perl5 wasn't attractive for me
by Jenda (Abbot) on Nov 20, 2014 at 16:11 UTC |