What am I doing wrong? I'd like perl scripts to work without my typing perl first.
phonetic.pl is not in your path. If you try: ./phonetic.pl it should run.
If you are running the default shell, tcsh, you can add the following line to ~/.cshrc:
setenv PATH ${PATH}:.
That way the current directory (.) is always in your path.
Which is a good way to open yourself to trojans, intended or otherwise.
Better to make a ~/bin directory (conventional name), put your phonetic.pl in there, and add $HOME/bin to your PATH:
setenv PATH ${PATH}:$HOME/bin
You'll then be able to just enter phonetic.pl to run it (provided its first line is
#!/usr/bin/perl
(followed by any perl flags you may see fit to use) which you'd need anyway).
You'll also be able to run phonetic.pl while cd'd to any other directory. Same applies to any other scripts you may want to put in ~/bin.
David
-- David Ledger - Freelance Unix Sysadmin in the UK. Chair of HPUX SysAdmin SIG of hpUG technical user group (www.hpug.org.uk) [EMAIL PROTECTED] (also [EMAIL PROTECTED]) www.ivdcs.co.uk
