in reply to Re^4: A DWIM too far?
in thread A DWIM too far?

Great! Is it possible to say
sub *GLOBAL::CORE::rename {...}
directly? Or is it a two step process?

-QM
--
Quantum Mechanics: The dreams stuff is made of

Replies are listed 'Best First'.
Re^6: A DWIM too far?
by BrowserUk (Patriarch) on Jun 18, 2004 at 02:01 UTC

    Actually, I got the CORE and GLOBAL the wrong way around. It should be

    *GLOBAL::CORE::rename = \&myrename;

    Or to do it in one step something like

    sub CORE::GLOBAL::rename{ system "ren $_[ 0 ], $_[ 1 ]"; return $? >> 8; }

    Examine what is said, not who speaks.
    "Efficiency is intelligent laziness." -David Dunham
    "Think for yourself!" - Abigail
    "Memory, processor, disk in that order on the hardware side. Algorithm, algoritm, algorithm on the code side." - tachyon