Perl Syntax Highlighting Example

This example uses Highlight.js with Perl code:


#!/usr/bin/perl
use strict;
use warnings;

my $name = "ChatGPT";
print "Hello, $name!\n";

for my $i (1..3) {
    print "Iteration $i\n";
}