in reply to START PERL

HOW TO WRITE PROGRAMS IN IT
I think that's the heart of your problem. Perl isn't an application you start and then you're doing things in it - it's not a game. First you write a program, using whatever means you find most comfortable, and only then you start Perl, giving it the program you wrote to run. And Perl stops once it's done running your program.