Hi Athanasius,
Thanks for your suggestions. I have got desired result after using seek $fh1, 0, 0; as suggested by you.
I avoid using "use strict;" in the script because "my" has to placed before every scalar and array variable. Moreover, I have noticed that "use strict;" sometimes does not give me the correct result from my script and the cmd shows a large number of warnings. Without the "use strict;" line in my script, I often get the desired result. That is why I avoid "use strict;" although I know that it detects the flaws in a script.
I have to learn more about "use strict;".
With regards,
In reply to Re^2: How can one input a textfile from desktop just created?
by supriyoch_2008
in thread How can one input a textfile from desktop just created?
by supriyoch_2008
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |