Currently a ported version of our C-Shell system has been made using Perl. The problem is that our C-Shell scripts would call each other and pass along the initial STDIN without anything special being done.
Example:
callingcshell.csh < myval1 myval2 myval3
These myval's would then be used according to whatever STDIN call was waiting for STDIN, namely the menus.
The problem is that on cshell this would work:
in callingcshell.csh:
myshell1.csh ( 1 STDIN request )
myshell2.csh ( 1 STDIN request )
in myshell1.csh:
myshell1_1.csh ( 1 STDIN request )
each of these depending on the order called would get 1 value. ie- myshell1.csh got myval1, myshell1_1.csh got myval2 and myshell2.csh got myval3.
on perl however (.prl is the extension we use ), only the myshell1.prl ( equivalent to myshell1.csh ) would get a value, the rest wouldn't get anything.
Is there anything I can set or do to get Perl to behave like this?