In Perl, an array is an information construction that shops a set of parts. An array might be declared utilizing the @ image, adopted by the checklist of parts enclosed in parentheses. For instance:
my @array = (1, 2, 3, 4, 5);
To verify if an array is null, you need to use the outlined() perform. The outlined() perform returns true if the variable handed to it’s outlined and never null, and false in any other case. For instance: