Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^12: Undiagnosable Problem

by Corion (Patriarch)
on Jan 15, 2017 at 20:29 UTC ( [id://1179606]=note: print w/replies, xml ) Need Help??


in reply to Re^11: Undiagnosable Problem
in thread Undiagnosable Problem

That's hard to say without actually seeing your code.

You will have to identify the functions that are used from both places and move these into a third file which is loaded by both of the other files.

I haven't encountered problems when doing that, but maybe you have two functions that invoke each other:

sub foo { if( $_[0] ) { bar( $_[0] -1 ) }; }; sub bar { if( $_[0] ) { foo( $_[0] -1 ) }; };

These functions cannot be easily split in two, but depending on their functionality, maybe there is a way to rewrite them so that the common functionality can be removed.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2024-04-20 02:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found