Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

Re^4: subroutine ref while "strict refs"

by BillKSmith (Monsignor)
on Jul 28, 2014 at 14:13 UTC ( #1095361=note: print w/replies, xml ) Need Help??

in reply to Re^3: subroutine ref while "strict refs"
in thread subroutine ref while "strict refs"

I understood that the OP considered his symbolic references an advantage because a user could add new subroutines without modifying the original script. My point is that it is unlikely that this is possible. The additional effort to add a hard reference to a dispatch table is insignificant if you have to modify the script anyway.
  • Comment on Re^4: subroutine ref while "strict refs"

Replies are listed 'Best First'.
Re^5: subroutine ref while "strict refs"
by viffer (Beadle) on Jul 29, 2014 at 03:28 UTC
    The sub routines will all be in a module which will obviously need a 'use' statement to reference it, so if adding a new sub routine to the hash table, only the called module will need to be updated.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (3)
As of 2022-06-25 04:11 GMT
Find Nodes?
    Voting Booth?
    My most frequent journeys are powered by:

    Results (81 votes). Check out past polls.