So it seems that if I give template toolkit a reference to an array as a parameter
ARRAY_REF => \@array
and then have the following code in a template
[% IF ( ARRAY_REF ) %]
Do something
[% ELSE %]
Do something else
[% END %]
The else case never gets triggered.
Replacing the parameter code with
ARRAY_REF => @array ? \@array : undef;
seems to solve the issue, however I was wondering if there is a way to make template toolkit evaluate an empty array (passed via reference) as false as there are many instances throughout my project where I believe this is being used (as in HTML template pro it worked as expected).
Thank you all in advance for your assistance.