Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

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 exploiting the Monastery: (3)
As of 2019-02-21 03:47 GMT
Find Nodes?
    Voting Booth?
    I use postfix dereferencing ...

    Results (108 votes). Check out past polls.

    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!