Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Constant subroutine main::C redefined

by Khen1950fx (Canon)
on Sep 10, 2012 at 12:41 UTC ( [id://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 }

Replies are listed 'Best First'.
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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://992746]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (6)
As of 2024-04-19 10:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found