Course of Raku / Essentials / Variables and data types essentials / Scalar variables / Exercises

Correct the identifiers

Problem

Make the necessary corrections in the following program to make all variable names valid.

my $ A G E = 30;
my Name = 'Valdis';
my $'Middle'Name = 'C.';
my $2address = 'Second street, 12';
my $from--to = 'London to Paris';

Solution

See the solution

Course navigation

Solution: Swap values   |   Solution: Correct the identifiers

Translations of this page: EnglishDeutschEspañolItalianoLatviešuNederlandsБългарскиРусскийУкраїнська