< Perl Programming < Keywords

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";
This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.