in reply to Re^4: How to ask user for file name and save the output to a new text file
in thread How to ask user for file name and save the output to a new text file

Hello again mmazlan67,

You are getting that much error output because of use diagnostics;. For the moment comment out this module with # use diagnostics;

The reason that you are getting this error is ,, notice the comma on your previous open call, also update the next one that is complaining. ;).

Hope this helps, BR

Seeking for Perl wisdom...on the process of learning...not there...yet!

Replies are listed 'Best First'.
Re^6: How to ask user for file name and save the output to a new text file
by mmazlan67 (Novice) on Jun 20, 2017 at 03:16 UTC

    Hi, thanks!! After i deleted use diagnostics;, it works fine now. Just need to solve on the looping part. Thanks !!

      Hello again mmazlan67,

      Provide us the latest version of your script, also the input parameters that you are using, the current output/behavior that you are getting and finally describe with words the desired output/behavior.

      I am sure that in matter of a few minutes after providing all of these data you will get many different approaches possibly faster and better of your current implementation. :D

      Help us to help you. This is how all of us started to learn. :D

      Hope this helps, BR.

      Seeking for Perl wisdom...on the process of learning...not there...yet!