Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^3: Package problem with defining subroutines

by Anonymous Monk
on Feb 05, 2013 at 16:01 UTC ( #1017210=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Package problem with defining subroutines
in thread Package problem with defining subroutines

Refactor, break the circle

sub tst1 { mutual_util(); ... } sub tst2 { mutual_util(); ... }

Take whatever tst1 does that calls tst2, take whatever test2 does that calls tst1 , make it a new function, and instead of calling each other, call this third function


Comment on Re^3: Package problem with defining subroutines
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2014-12-28 12:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (181 votes), past polls