Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
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 having a coffee break in the Monastery: (3)
As of 2025-11-08 18:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your view on AI coding assistants?





    Results (65 votes). Check out past polls.

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.