Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Variable access counterpoint

by Fletch (Bishop)
on Apr 03, 2002 at 16:05 UTC ( [id://156338]=note: print w/replies, xml ) Need Help??


in reply to Perl vs. Python: Looking at the Code

Without reading the entire chunk of code, you can't tell what type of value a variable's holding. foo could be a simple integer value. It could be a list. It could be a dictionary.

@foo is always an array. %foo is always a hash.

Pay no attention to those perl scalars containing references to objects hiding behind the curtain . . . :)

Not that Python doesn't have it's nice points (xmlrpclib for example), but it has warts of its own too (trailing commas can be syntactically significant, lambda's aren't really lambda expressions (i.e. closures)).

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (6)
As of 2024-04-19 07:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found