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?

In reply to Perl Cascading Calls, Losing STDIN? by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.