BLOCK form executes the
sequence of commands in
BLOCK, and returns the value of the last
expression evaluated in the block.
When modified by a loop modifier, Perl
BLOCK once before testing the loop
condition. (On other statements the loop modifiers test the
is a deprecated form of a subroutine
call. See "Subroutines" in Chapter 2.
form uses the value of
as a filename and executes the contents of the file
as a Perl script.
Its primary use is (or rather was) to include subroutines from a
Perl subroutine library, so that:
is rather like:
eval `cat stat.pl`;
except that it's more efficient, more concise, keeps track of the current filename for error messages, and searches all the directories listed in the @INC array. (See the section on "Special Variables" in Chapter 2.) It's the same, however, in that it does reparse the file every time you call it, so you probably don't want to do this inside a loop.