How about this thought?

perl -e 'print while(<>)' < /etc/passwd 

This would print the content in /etc/passwd file.
Here I just use shell's "<" symbol to pass the file's content to perl script.


-----Original Message-----
>From: "Nath, Alok (STSD)" <[EMAIL PROTECTED]>
>Sent: Mar 13, 2007 8:41 PM
>To: beginners@perl.org
>Subject: Automating a perl script by another perl script
>
>Hi, 
>   I have a perl script which prompts user for certain inputs.
>   I want to automate this by creating a separate script which runs the
>   above perl file and probably passing the inputs in a separate text
>file.
>
>   Can anybody give me some pointers or how to do this ?
>
>Thanks
>Alok.
>
>   
>
>--
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>http://learn.perl.org/
>
>


--
http://home.arcor.de/jeffpang/

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


Reply via email to