Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Re: Re: !Overriding Builtin print

by demerphq (Chancellor)
on Oct 20, 2003 at 13:56 UTC ( #300586=note: print w/ replies, xml ) Need Help??


in reply to Re: Re: !Overriding Builtin print
in thread !Overriding Builtin print

Interesting. However, given the documentation on my system this mistake is not difficult to understand... From perlsub

Overriding may be done only by importing the name from a module--ordin +ary predeclaration isn't good enough. However, the use subs pragma lets yo +u, in effect, predeclare subs via the import syntax, and these names may +then override built-in ones: use subs 'chdir', 'chroot', 'chmod', 'chown'; chdir $somewhere; sub chdir { ... }

But thanks for the clarification.


---
demerphq

    First they ignore you, then they laugh at you, then they fight you, then you win.
    -- Gandhi



Comment on Re: Re: Re: !Overriding Builtin print
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (6)
As of 2014-07-30 22:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (241 votes), past polls