Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Constant subroutine main::C redefined

by Khen1950fx (Canon)
on Sep 10, 2012 at 12:41 UTC ( #992746=note: print w/ replies, xml ) Need Help??


in reply to Constant subroutine main::C redefined

Using tinita's example:

#!/usr/bin/perl BEGIN { $ENV{'REDEFINE'} = 0; } use autodie; use common::sense; use Env::Export qw/:nowarn REDEFINE/; sub FOO () { 23 } sub FOO () { 42 }


Comment on Re: Constant subroutine main::C redefined
Download Code
Re^2: Constant subroutine main::C redefined
by tinita (Parson) on Sep 10, 2012 at 12:46 UTC
    has the same problem with perl < 5.16

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (5)
As of 2014-12-28 17:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (182 votes), past polls