Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: use re 'debug';, scope, and output

by QM (Parson)
on Jul 14, 2015 at 09:08 UTC ( [id://1134661]=note: print w/replies, xml ) Need Help??


in reply to use re 'debug';, scope, and output

Update: Nope, I was wrong, this doesn't work.

=========

tl;dr: Change the order:

{ open STDERR, '>', 'err.txt' or die $!; open STDOUT, '>', 'out.txt' or die $!; use re 'debug'; $string =~ s/\bd\"//g; }

Also note that this method may interfere with other output in a real program.

-QM
--
Quantum Mechanics: The dreams stuff is made of

Replies are listed 'Best First'.
Re^2: use re 'debug';, scope, and output
by Anonymous Monk on Jul 14, 2015 at 10:02 UTC
    the order is irrelevant, use happens at compile time, and "COMPILE" diagnostic gets printed at compile time (same time pattern gets compiiled), way before the open STDERR... take effect

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1134661]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (2)
As of 2024-04-26 02:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found