This shows you the differences between two versions of the page.
esmith:logger [2015/05/22 08:03] stephdl [SYNOPSIS] |
esmith:logger [2019/06/05 19:48] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | =====esmith:: | ||
- | | ||
- | =====SYNOPSIS===== | ||
- | use esmith:: | ||
- | | ||
- | tie *FH, ' | ||
- | print FH "log message"; | ||
- | close FH; | ||
- | |||
- | you can do a function | ||
- | use esmith:: | ||
- | #we create a function because we want to write in log | ||
- | sub log2messages | ||
- | { | ||
- | my $message = shift; | ||
- | tie *FH, ' | ||
- | print FH " | ||
- | close FH; | ||
- | } | ||
- | and now in your code if you want to use it | ||
- | log2messages(" |