I already knew at that point that the script wasn't executed at all because if ti did the carp module would produce a perl error.
Why didn't you let us know you had determined that? That also means you knew you were asking questions that have nothing to do with Perl.
As for the shebang line i though you were refering to '#!/usr/bin/perl'
I had no idea that before that is hould had a line '#!' before the shebang line,
That makes no sense. It's not a shebang line if there's anything before it.