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

Re: When do subs get overridden?

by dakkar (Hermit)
on Apr 05, 2003 at 11:24 UTC ( #248279=note: print w/replies, xml ) Need Help??


in reply to When do subs get overridden?

You see, q is not a subroutine, it's a syntactic construct, like quotes or braces. There is nothing to "override". You can, however, change its semantic a bit with:

  • a source filter (ok, this is obvious)
  • redefinition of stringification for some datatype (package MyQ;use overload '""' => sub {return "overridden"};)

-- 
        dakkar - Mobilis in mobile

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://248279]
help
Chatterbox?
and a kettle whistles...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2017-11-24 04:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (344 votes). Check out past polls.

    Notices?