Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

Re: Package problem with defining subroutines

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

in reply to Package problem with defining subroutines

You've got infinite loop
  • Comment on Re: Package problem with defining subroutines

Replies are listed 'Best First'.
Re^2: Package problem with defining subroutines
by AlfaProject (Beadle) on Feb 05, 2013 at 15:55 UTC
    I know, but how I can prevent it by design ?
    For example you have which all modules uses it .
    Then a and , that using each other for retrieving info
    Reading posts from #1 reply (tnx)

      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

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1017207]
[ambrus]: As for TeX, I'm not trying to discourage anyone from writing carefully beautifully typeset documents, in maths or outside. But most people aren't willing to do that, and will spend only little time about the formatting,
[ambrus]: and try to leave everything else to automated systems without checking how what they write came out format-wise, and for those people, discounting the part about journals with a specific format above,
[ambrus]: just blindly recommending to use LaTeX is a bad idea now.

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (9)
As of 2017-09-26 11:20 GMT
Find Nodes?
    Voting Booth?
    During the recent solar eclipse, I:

    Results (293 votes). Check out past polls.