Re: [retfej] how can i pass the value from "from.pl" to "to.pl"???
[In reply to]

Can't Post

We need more information. I think that "to.pl" and "from.pl" are files that contain perl code. Are they complete programs? Does one contain a subroutine of the other? Can one execute the other? Must one finish before the other starts? Must they run in parallel? Do you need multiple copies of either one?

Please tell us more about your original problem. We may be able to suggest a solution that does not use multiple files at all. Good Luck, Bill

Re: [retfej] how can i pass the value from "from.pl" to "to.pl"???
[In reply to]

Can't Post

Please kindly provide the information that Bill asked for. We can't help you with such a vague question. For example, can we assume that there is a from.pl program that does some calculations and then calls a to.pl program? Or do you have in mind something else?

Re: [retfej] how can i pass the value from "from.pl" to "to.pl"???
[In reply to]

Can't Post

No one here is going to write and debug examples which may not even apply to your situation.

If "from.pl" and "to.pl" are complete perl programs, why not use your shell to pipe the STDOUT of "from.pl" to the STDIN of "to.pl"? (only works if these handles are not used for anything else!) Good Luck, Bill

Re: [retfej] how can i pass the value from "from.pl" to "to.pl"???
[In reply to]

Can't Post

Quote

sorry sir but i don't know how to use subroutines.

That's one of the many things you need to learn and is probably what you need to use here, but since you have not shown us your code or given a clear explanation of what you need to do, we can only make guesses. My crystal ball broke many years ago.