Perl (perl 5.28.1) sample

Here is a Perl sample code:

#!/usr/bin/perl

use strict;
use warnings;

# Print "Hello, World!"
print "Hello, World!\n";

This code is a simple Perl script that prints "Hello, World!" to the console. It starts with the shebang line #!/usr/bin/perl, which tells the system to use Perl to interpret the script. The use strict; and use warnings; lines enable strict and warnings mode, which help catch common programming mistakes.

The print statement is used to output the string "Hello, World!" followed by a newline character (\n), which creates a new line after the text is printed.

Please let me know if you need further assistance!