Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^2: need help...

by perlassassin27 (Novice)
on Jan 26, 2011 at 15:57 UTC ( [id://884372]=note: print w/replies, xml ) Need Help??


in reply to Re: need help...
in thread need help...

the bigger picture is that i have to run a couple of perl scripts in which Script A will call script B but in order to run script B, it needs to have the same values or input that i had input in to script a. overall script A is a list of tests that are done separately and script B is a test where the tests are done one after the other in a combination. all i have to do is to connect it so that i just need to run one script then choose my options from then on. i cannot use subroutines for most of the script because the same variables are used everywhere and when i tried using pass by reference(\) i was getting a result but that result was not returned. so i thought just make script B and then call it from script A. but i need the hash variable from script a in script b so that script B works fine

Replies are listed 'Best First'.
Re^3: need help...
by GrandFather (Saint) on Jan 26, 2011 at 21:02 UTC

    So actually the bigger picture is that you want to be able to run two sets of tests where the second set comprises combinations of the tests in the first set. A little back story that leaked through was that you had trouble implementing your first try and rather than seeking help resolving those (fundamental programming related) issues you have worked around them and been bitten by essentially the same issues in a different guise.

    If you would like some real help with this problem I strongly suggest you should show us the nature of the tests you wish to perform. Testing of various sorts is something that is done often in Perl encouraged by CPAN. There is a lot of support for writing tests suites in Perl.

    True laziness is hard work
Re^3: need help...
by tilly (Archbishop) on Jan 26, 2011 at 19:08 UTC
    The bigger, bigger picture is that you obviously have basic lessons to learn about modularity. You have a lot of variables that are referred to from everywhere with very few subroutines. That is a string of red flags to any experienced programmer.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2024-04-25 13:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found