Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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 goofing around in the Monastery: (2)
As of 2024-04-25 06:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found