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

THE EXECUTION MODEL

Although not a vital part of your understanding of the differences between Perl and Python, understanding the similarities and differences between the two models of execution is a useful side note.

Perl

Perl's execution model, follows a very simple path. The model assumes you've just run a Perl script from a text file, which with some minor differences applies equally to the methods used for executing embedded scripts (from C/C++), in-line evaluations (through eval), and the one line scripts supplied on the command line.

Following the figure the basic execution process for Perl goes like this:

1.
Read the source code.
2.
Immediately execute any BEGIN blocks in the source.
3.
Import (and if necessary evaluate and execute) the ...
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