Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^4: A DWIM too far?

by BrowserUk (Patriarch)
on Jun 18, 2004 at 01:40 UTC ( [id://367829]=note: print w/replies, xml ) Need Help??


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

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

Update: The above is wrong! It should be

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

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

Replies are listed 'Best First'.
Re^5: A DWIM too far?
by QM (Parson) on Jun 18, 2004 at 01:44 UTC
    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

      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

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (4)
As of 2024-04-26 00:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found