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

Variable access counterpoint

by Fletch (Chancellor)
on Apr 03, 2002 at 16:05 UTC ( #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?

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2019-10-18 01:30 GMT
Find Nodes?
    Voting Booth?