in reply to Please help

print: "Before: @array \n";
You have extra ':' after 'print'.