in reply to Array is empty when using if else condition

kaka_2,

my @SPECores = <$fh>;

You must first define '@SPECores' before the 'if...else...'.

Regards...Ed

"Well done is better than well said." - Benjamin Franklin