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
to markup sometxt.txt into somehtml.html .
However, this returns an error from the shell,
that it doesn't recognize the command. I
don't think I'm supposed to compile the script
first, and perl is definitely in /usr/bin/.
Have I misunderstood how the #! works?
--
Nick Bacon -
Coordinator, Independent Study Lab -
Scottsdale Community College -
480.423.6223 -
- Realizing what you envision ...
- calls forth much creativity.
- Bob Stein
- http://www.visibone.com