Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Yet Another Override Oddity

by Zaxo (Archbishop)
on Apr 28, 2005 at 03:57 UTC ( [id://452208]=perlmeditation: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    local *CORE::GLOBAL::die = sub (@) {
        die scalar(localtime()), ' ', @_;
    };
    
  2. or download this
    $ perl -e'local *CORE::GLOBAL::die = sub (@) {CORE::die(scalar(localti
    +me()), " ", @_);}; die "Foo!"'
    Foo! at -e line 1.
    $
    
  3. or download this
    $ perl -e'print prototype "CORE::die"'
    @$
    
  4. or download this
    BEGIN {
        *CORE::GLOBAL::warn = sub (@) {
            CORE::warn(scalar(localtime), " ", @_);
    ...
    __END__
    Foo! at -e line 1.
    Bar! at -e line 1.
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlmeditation [id://452208]
Approved by friedo
Front-paged by virtualsue
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: (2)
As of 2024-04-19 20:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found