Hi,

sounds similar to my recent problem. You could

1. turn both programs into subroutines and use the return function at the end of the 
input subroutine to pass the arguments:

second_sub(first_sub());

2. Or you could use a closure, as Jeff recommended, to merge the second program into 
the first one. Unless the interaction between the two is relatively complex, the first 
way should work, though.

HTH,

Jan

gautam chaurasia wrote:

>Hallo,
>
>i m using perl for parsing the queries in xml files, so i have
>written two seperate progarms one is "local.pl"  and the other one
>is "inter.pl". The fisrt program gets the list of proteins from
>first xml file gives as an output, and now i want to use this output
>of loca.pl as the input for inter.pl, it checks whether these datas 
>exist in second  xml datafile.
>
>i have already tried it out by combining the both codes and created
>an object of loca.pl in inter.pl. but it didnt work. So, may be i
>have done some mistakes.
>
>Could someone please tell me how to use output of one class into
>another class.
>
>
>Thanks in advance
>
>gautam
-- 
There are 10 kinds of people:  those who understand binary, and those who don't

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to