in reply to Re^2: To create a custom log
in thread To create a custom log

You can also leave the files open between multiple logging calls.

Or you can use one of the many logging modules.

One problem with system & echo is that you don't get a good feedback if the command went wrong.

Perl 6 - links to (nearly) everything that is Perl 6.

Replies are listed 'Best First'.
Re^4: To create a custom log
by sajanagr (Acolyte) on Aug 20, 2010 at 09:39 UTC
    Is it safe to open the file for a long time until the entire process is completed?

    I am new in logging and never used any of the logging modules.

    What do you suggest the best approach is ?

      it's save, if you know what are you doing :-) (and few background, like buffering).
      And if you are not sure, you can use locks.