Is this to create dynamic web pages using CGI? Or are you trying to run the
perl script to create a static html file from the text file?

John

-----Original Message-----
From: Thomas Burkhardt [mailto:[EMAIL PROTECTED]]
Sent: 10 August 2001 17:36
To: Perl Help
Subject: skrptX.pl inp.txt--->reportX.shtml



Greetings Perl Gurus! 

Problem:  Converting text to html using a perl script.  I have an
operational perl script that I run on the command line like so: 

> skrptX.pl 

In the same CWD I have an input file called "inp.txt".  Lets say it is
merely a one column list of names.  The script I have written, presents
this to the screen
nicely.  The code looks like the following: 

#!/devl/perl/bin/perl -w 

$filename1 = "inp.txt\n"; 
chomp $filename1; 

open($filename1, "< $filename1") || die "Cannot Open Container
File:$!\n"; 
@lines1 = <$filename1>; 
print "\n$filename1 TC names:\n"; 
$last = $#lines1 + 1; 
foreach (@lines1) { 
  print $_; 
        } 
print "The # of TCs is: $last\n\n"; 
close($filename1); 

Question:  Modifying my script, how do I direct this inp.txt to an HTML
file?  I need to be able to direct this to a web server file location. 
Do in need to "use
Getopts"?  I know the HTML tags that can make my browser display this
the way I want it.  But how do I make the script do the work?  I am
unsure as tohow to deal with STDOUT! 

Thanks TONS for your insight! 

Tom

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


--------------------------Confidentiality--------------------------.
This E-mail is confidential.  It should not be read, copied, disclosed or
used by any person other than the intended recipient.  Unauthorised use,
disclosure or copying by whatever medium is strictly prohibited and may be
unlawful.  If you have received this E-mail in error please contact the
sender immediately and delete the E-mail from your system.



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to