Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^6: Constant subroutine main::C redefined (diag)

by tye (Sage)
on Sep 10, 2012 at 14:04 UTC ( [id://992769]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w
    BEGIN { $SIG{__WARN__} = sub {
    ...
    } }
    sub FOO() { 23 }
    sub FOO() { 42 }
    
  2. or download this
    #!/usr/bin/perl -w
    sub FOO() { 23 }
    BEGIN { no warnings 'misc'; undef &FOO if ! @ARGV }
    sub FOO() { 42 }
    

Log In?
Username:
Password:

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

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

    No recent polls found