The basic control structures of Perl are similar to those used in C and Java, but they have been extended in several ways.