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]

Reply via email to