http://www.perlmonks.org?node_id=11140451


in reply to Re^2: Perl Contempt in My Workplace
in thread Perl Contempt in My Workplace

Python has function scope, I think you mean block scope.

I literally meant the scope of variables. :D

-QM
--
Quantum Mechanics: The dreams stuff is made of

Replies are listed 'Best First'.
Re^4: Perl Contempt in My Workplace
by LanX (Saint) on Jan 14, 2022 at 17:14 UTC
    > the scope of variables. :D

    Python has 4 types of variable scope°

    Block scope like in Perl is none of them, with or without curlies.

    But this doesn't mean that "variable scope" is missing in Python.

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery

    °) see also Re^2: Perl Contempt in My Workplace