Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^2: RFC: Devel::Deprecate

by Ovid (Cardinal)
on Apr 24, 2008 at 15:20 UTC ( #682652=note: print w/replies, xml ) Need Help??


in reply to Re: RFC: Devel::Deprecate
in thread RFC: Devel::Deprecate

I think you're right about the 'if' condition. Not sure what I was thinking, though it's now in there and I've already uploaded.

By default, the deprecate() sub will only run if you're running tests (it checks for the $ENV{HARNESS_ACTIVE} variable). If, for some reason, this variable is true in your code, you can set $ENV{PERL_DEVEL_DEPRECATE_OFF} to a true value to disable the deprecation. Of course, as previously pointed out, merely omitting the 'die' date ensures that no fatal error will occur.

Cheers,
Ovid

New address of my CGI Course.

Replies are listed 'Best First'.
Re^3: RFC: Devel::Deprecate
by jplindstrom (Monsignor) on Apr 25, 2008 at 11:35 UTC
    I think you're right about the 'if' condition. Not sure what I was thinking, though it's now in there and I've already uploaded.

    Maybe you can... uh, what's the word... remove it from the supported features? :)

    /J

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://682652]
help
Chatterbox?
[chacham]: I'm sure this is old, but i just came across it: If you put a million monkeys at a million keyboards, one of them will eventually write a Java program. The rest of them will write Perl programs.
[LanX]: lol
[Corion]: Woo hoo! A new Auralnauts episode!
LanX mean unfair and funny
[LanX]: but most java code looks like from one million monkey using eclipse. ..

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (13)
As of 2018-04-23 16:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?