Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re: execution log

by strat (Canon)
on May 08, 2006 at 08:31 UTC ( #547970=note: print w/replies, xml ) Need Help??

in reply to execution log

If you want an internal solution, you could try something like writing a short sub or module which redirects STDOUT and STDERR into files, e.g

use FindBin (); use File::Basename (); sub RedirectOutputToFiles { my $scriptName = File::Basename::basename($0); my $stdoutFile = "$FindBin::Bin/$scriptName.stdout"; my $stderrFile = "$FindBin::Bin/$scriptName.stderr"; open (STDOUT, ">", $stdoutFile) or die "Error: couldn't redirect STDOUT: '$stdoutFile': $!"; open (STDERR, ">", $stderrFile) or die "Error: couldn't redirect STDERR: '$stderrFile': $!"; } # RedirectOutputToFiles

or the like, and then just execute the sub somehow

Best regards,
perl -e "s>>*F>e=>y)\*martinF)stronat)=>print,print v8."

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://547970]
[Lady_Aleena]: $ grep --include=*.p[lm] -Ern 'get_(array|hash| data)' does not do multiline search.
[Discipulus]: focus on Perl LA; you can already search multiline patterns
[erix]: grep is a program, not a regex-engine
[Tanktalus]: perldigious: I'm 20 years in, and I don't want to move ;)
[Lady_Aleena]: erix, right, it searches files for a pattern. pcregrep is supposed to do the same thing with the addition of being able to search multiline.
[erix]: ah, pcregrep is a stanalone program?
[Lady_Aleena]: erix, yes.
[Lady_Aleena]: pcre stands for 'Perl Compatible Regular Expressions'.
[erix]: ok, ok, I thought you meant the engine
[perldigious]: Tanktalus: Ha, understandable, that does make it harder when you don't want to move. I assume you are looking at remote work from home jobs too?

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (13)
As of 2017-05-23 19:22 GMT
Find Nodes?
    Voting Booth?