Advertisement

06.06.2004 at 05:51PM PDT, ID: 21015384
[x]
Attachment Details

write to a text file and run perl script

Asked by chloeyoyo in Perl Programming Language

Tags: file, script, how, perl, text

I want to know how can I write to a text file? (I am using windows XP and Apache)
Using code below I want to be able to select The Os and enter Info below then by pressing button "Submit Calendar" to write Info to the first line of file in c:\tmp\calendar.txt
For Example
If HP is selected and Cust Name is ORANG and Manager Email is mangeorage@bla.com and Manager name is JOHN NUM press button "Submit Calendar "
Then
If LINUX is selected and Cust Name is CHIPS and Manager Email is mangechips@bla.com and Manager name is DICK TEE press button "Submit Calendar
The calendar file will be
ORANG HP mangeorage@bla.com JOHN NUM
CHIPS LINUX mangechips@bla.com DICK TEE
Note If button “Clear calendar File” is pressed it will clear the calendar.txt file.

When calendar.txt file is completed I want to select my program hello.pl to run using calendar.txt info and print  Example
HELLO ORANG HP mangeorage@bla.com JOHN NUM
HELLO CHIPS LINUX mangechips@bla.com DICK TEE


<FORM METHOD="GET" >
<TABLE><TR>
<TD>Cust Name: </TD>
<TD><INPUT TYPE="TEXT" NAME="Name"></TD>
</TR><TR>
<TD>Manager Email: </TD>
<TD><INPUT TYPE="TEXT" NAME="Name"></TD>
</TR><TR>
<TD>Manager name: </TD>
<TD><INPUT TYPE="TEXT" NAME="Name"></TD>
</TR><TR>

Select Operating System:<BR>
<INPUT TYPE=CHECKBOX NAME=LINUX >
LINUX<BR>
<INPUT TYPE=CHECKBOX NAME=HP >
HP<BR>
<INPUT TYPE=CHECKBOX NAME=SUN >
SUN<BR>
<HR>
</TR><TR>
<TD><INPUT TYPE="RESET" VALUE="Clear Form"></TD>
<TD><INPUT TYPE="RESET" VALUE="Clear calendar File"></TD>
<TD><INPUT TYPE="SUBMIT" VALUE="Submit Calendar" ></TD>
</TR></TABLE>
</FORM>

<HR>
<FORM METHOD=GET >
Pick Your Program To Run:
<SELECT Name="cookie" SIZE=3>
<OPTION VALUE="1">Hello.pl
<OPTION VALUE="2">Goodby.pl
<OPTION VALUE="3">Program.pl
</SELECT>
<INPUT TYPE=SUBMIT VALUE=Submit>
</FORM>

Start Free Trial
[+][-]06.06.2004 at 08:05PM PDT, ID: 11245908

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.06.2004 at 09:03PM PDT, ID: 11246042

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.07.2004 at 11:08AM PDT, ID: 11251859

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.10.2004 at 12:40AM PDT, ID: 11276868

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Perl Programming Language
Tags: file, script, how, perl, text
Sign Up Now!
Solution Provided By: melindaj
Participating Experts: 3
Solution Grade: B
 
 
[+][-]06.16.2004 at 12:06AM PDT, ID: 11322061

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.17.2004 at 07:25PM PDT, ID: 11340700

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.13.2004 at 11:31PM PDT, ID: 11546248

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.14.2004 at 02:54AM PDT, ID: 11547084

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32