Read the CPAN perldoc (type "perldoc CPAN"). If you are impatient, try:

Code

perl -MCPAN -e shell cpan>install SelectSaver

The first time you run CPAN it will ask you a ton of questions:

1. For the most part, just accept the defaults. 2. Tell it you want to follow dependencies (ask is ok too, you just have to hang around during the install to say "yes" to the prompts). 3. Pick your region and select a few mirrors to download packages from. I have no recommendations about which ones are better than others.

UPDATE:

It could be that your installation of IO/File is screwed up, also. If things still aren't working after the SelectSaver install, Try running CPAN again and [re]installing 'IO::File'.

I didn't install anything. I just copied the Perl folder to my MS-DOS environment and tried to run perl.exe with my script file. I dont know whether I need to install something. I dont know how to install in Ms-DOS (it's not Windows). Maybe the problem I am getting is because I didnt install something in DOS.

Urk. I have no experience with Perl on FreeDOS; but, it seems like there's something screwy with your perl installation or with your DOS environment. If I were you I'd get on the FreeDOS forums and ask what is the best way to install Perl on that platform. Perhaps others here will have more help.

Sorry, I know nothing about FreeDOS or its environment. I suggest you ask on www.perlmonks.com and see if any member there has some experience in this area. -------------------------------------------------