From Code to Community: Sponsoring The Perl and Raku Conference 2025 Learn more

#!/usr/bin/perl
my $x = "One";
$x = "FirstVal";
set_x();
$x = "SecondVal";
set_x();
$x = "ThirdVal";
set_x();
$x = "FourthVal";
set_x();
sub set_x
{
$x .= "OneHundred";
my $t = $x;
$t .= "Foo";
}