use strict;
use warnings;
print "Hello world.\n";
Now save the file with a name of "mytest.pl" in a directory that's easy to find from the command line. Then start a CMD shell. Change directory into the path where you just saved your file. Type the following:
perl mytest.pl
Your little test script will run, and will print "Hello world." Now you wrote your first program, and executed it. This may not be the sleekest way to start up a Perl script, but it's guaranteed to work as long as you've got Perl installed correctly. If it doesn't work for you, go ask if you can have your old job back instead.
Once you've accomplished getting your script to run, you've resolved about half of what I understood you to be asking in your question... at least if I understood part of it. It was pretty incomprehensible in the first place.
We've now shown you how to get the elevator to go to the 5th floor. I'm guessing we'll be asked which button to push to get it to go to the 6th next. It might be a good idea to hire a tutor for a few hours to get you started in the right direction. It seems like whatever is needed we're not succeeding in providing.
By the way: After reading over your question a few times I just don't see how file handles and streams relate to the question. I realize i haven't provided any insight there, but it just seems like if you're having trouble getting a script to run, we ought to address that first before moving on to file IO.
|