nested haah in perl

In Perl, you can create nested hashes by assigning a hash reference to a hash key. Here's an example:

my %hash1 = (
    key1 => {
        nested_key1 => 'value1',
        nested_key2 => 'value2'
    key2 => {
        nested_key3 => 'value3',
        nested_key4 => 'value4'

In this example, %hash1 contains two keys (key1 and key2), and each key is associated with a hash reference. The hash references represent the nested hashes.

Please let me know if you need further assistance!