Perl Programming/Keywords/do

The do keyword

do is the command that returns the value of the last command in the following command sequence BLOCK. When this command is modified by while or until, it executes the BLOCK once before checking the loop condition.

Syntax

  do BLOCK

Examples

do "trigonometry.pl";