Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^3: Perl Contempt in My Workplace

by QM (Parson)
on Jan 14, 2022 at 16:32 UTC ( [id://11140451]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11140451]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (7)
As of 2024-05-21 09:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found