Skip to Content
Perl To Python Migration
book

Perl To Python Migration

by Martin C. Brown
November 2001
Beginner
320 pages
5h 53m
English
Pearson Business
Content preview from Perl To Python Migration

OBJECT ODDITIES

Although Python always creates objects when you create a variable, it's important to understand the association between the name, the object, and the variable. In truth, Python stores references or pointers to the internal structures used to store the information for a specific object type. This is the equivalent of the Perl reference – a Python object is merely the address of a structure stored in memory, in the same way that a scalar reference in Perl is merely a reference to the real variable type stored in memory.

With Perl, the programmer also has to make a conscious effort to use a reference as a specific data type. You must dereference a Perl reference before you can access the information. If you don't dereference, or ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Perl in a Nutshell

Perl in a Nutshell

Nathan Patwardhan, Ellen Siever, Stephen Spainhour
Perl by Example

Perl by Example

Ellie Quigley
Perl Hacks

Perl Hacks

Chromatic, Damian Conway, Curtis Ovid Poe, Curtis (Ovid) Poe

Publisher Resources

ISBN: 0201734885Purchase book