Perl Monk, Perl Meditation | |
PerlMonks |
Re: How to Prepending a timestamp to each line of output from a commandby thanos1983 (Parson) |
on Jun 07, 2017 at 12:07 UTC ( [id://1192263]=note: print w/replies, xml ) | Need Help?? |
Hello jnarayan81, The monks have already provided you with wisdom, but I am wondering why don't you simply call it through a subroutine. Your script works just fine as soon as you call the subroutine every instance that you want it. Sample:
Hope this helps.
Seeking for Perl wisdom...on the process of learning...not there...yet!
In Section
Seekers of Perl Wisdom
|
|