Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
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: (6)
As of 2014-09-21 21:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (176 votes), past polls