On Tue, Apr 17, 2001 at 04:14:28PM -0700, Nicholas Bacon wrote:
> I downloaded a script that can convert a plain text
> file to HTML, called txt2html.pl . It starts
> with #!/usr/bin/perl, which should mean I can treat
> it as an executable at the prompt, after I've
> performed a chmod to make the file executable.
> I did this and at the prompt, I type
>
> txt2html.pl sometxt.txt > somehtml.html
Try it like this:
./txt2html.pl sometxt.txt > somehtml.html
if txt2html.pl is in your current working directory.
> to markup sometxt.txt into somehtml.html .
> However, this returns an error from the shell,
> that it doesn't recognize the command.
Is the current directory in your path? (or, is txt2html.pl in
one of the other directories in your path?)
> I
> don't think I'm supposed to compile the script
> first,
Right.
>and perl is definitely in /usr/bin/.
Is it a symlink to a non-existant file?
> Have I misunderstood how the #! works?
I doubt it. Sounds like a path problem, not a Perl problem.
--
Tad McClellan SGML consulting
[EMAIL PROTECTED] Perl programming
Fort Worth, Texas