Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: How to call a Sub / Function with changing name

by aquarium (Curate)
on Oct 29, 2010 at 02:31 UTC ( [id://868206]=note: print w/replies, xml ) Need Help??


in reply to How to call a Sub / Function with changing name

there are places to use dispatch tables, closures, or even self modifying code in rare instances. but sometimes doing these things can cloud further development of code, which should just be written in a clearer modular fashion. Case in point deciding sub names depending on input filename, is probably not the best of things to do. it's implying semantics due to a particular filename. should (i think) be explicit instead, e.g. via parameter -filetype or similar explicit contraption
the hardest line to type correctly is: stty erase ^H
  • Comment on Re: How to call a Sub / Function with changing name

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (6)
As of 2026-02-16 20:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.