Perl problems

Joe Wamsley jw at netrattler.net
Thu May 12 02:42:57 UTC 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Stephen R Laniel wrote:
> On Wed, May 11, 2005 at 09:52:24PM -0400, Joe Wamsley wrote:
> 
>>At the shell I type secede2.pl names.txt (note:both files are together
>>in the same directory) and it gives me an error message saying "bash:
>>secede2.pl: command not found" I also tried removing the #! to see if
>>that worked and no luck. The only way it will run is by typing perl
>>secede2.pl names.txt. Any other ideas on what I can try or is this
>>something I will just have to deal with.
> 
> 
> Is the script executable? Do an
> 
> ls -la secede2.pl
> 
> The results should look like so:
> 
> (21:58) slaniel at TheloniousMonk:~/test$ ls -la secede2.pl
> -rwxr-xr-x  1 slaniel slaniel 0 2005-05-11 21:58 secede2.pl
> 
> There may be more or fewer 'x's when you list the file, but
> there should be at least one.
> 
> I'm not sure about your level of expertise, so maybe this is
> dumbing down the answer too much. Let me know if I should
> adjust the level of my response. :-)
> 
> 

Sorry that I forgot to mention that, but yes my file is executable when
I run ls -la secede2.pl I get this -rwxr--r--  1 netrattler netrattler
50 2005-05-11 22:07 secede2.pl. I also tried this that someone else
suggested by running ./secede.pl names.txt and it works so is there any
chance that maybe I have the incorrect PATH. Here are the results from
echo $PATH
/usr/local/bin:/usr/local/sbin:/sbin:/usr/sbin:/bin:/usr/bin:/usr/bin/X11:/usr/g
ames:/usr/bin/perl

Thanks,
Joe
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCgsKxrUKg47Bf38URApGmAJ9VqKnfE6aAybA7Tb82aK2d1ri8RgCfYV2V
WNAUWnkr/objtiSJHptk1p8=
=86tU
-----END PGP SIGNATURE-----




More information about the ubuntu-users mailing list