Cody Pendant has asked for the wisdom of the Perl Monks concerning the following question:
Despite the existence of this website, I've been unable to get his cgi-input example ( http://www.aigeek.com/txt2html/txt2html.cgi-source ) to work.
But more to the point, I don't really understand this way of doing Perl.
His library consists of many many subs, which are called by "&main()" at the bottom.
The cgi version of using this library is,
where the "-l" is a switch and the other file is a dictionary.open( T, "|/path/to/lib -l /path/to/.txt2html.dict" ); print T $text;
I just don't understand how this "pipe" method works. That's supposed to print out to screen the contents of the variable $text, as munged by his program?
Also, any ideas as to why I can't make it work on my server? It doesn't die when I put an '|| die "$!"' after the "open" line, it just prints nothing to screen. And there is something in the $text variable, I checked.
So my questions are,
($_='jjjuuusssttt annootthheer pppeeerrrlll haaaccckkeer')=~y/a-z//s;print;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(jeffa) Re: txt2html
by jeffa (Bishop) on Jul 16, 2002 at 02:59 UTC | |
by Cody Pendant (Prior) on Jul 16, 2002 at 04:45 UTC |