Naser Ali wrote:
Below is the actual code. This is just the preliminary code to test
the logic, it is not final yet, therefore, I am not using
"Warnings", "Strict" or for that matter anything else.
That reasoning is so very, very *wrong*. Strictures and warnings are
not to be added when a program is finished. On the contrary, it's most
useful when developing the program in order to have Perl instantly let
you know about typos and other errors.
open(TFILE, "file.txt");
open TFILE, 'file.txt' or die "Couldn't open file for reading $!";
(I can't locate any obvious errors in your code.)
--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>