Perl problems

Joe Wamsley jw at netrattler.net
Thu May 12 01:52:24 UTC 2005


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

Running Ubuntu Hoary:

I'm in the process of trying learn Perl as my first programming language
and ran into a snag that I can't seem to correct. Basically what I'm
trying to do is run it as a stand-alone application. It should work, but
for some reason it wont execute. So I tried a whereis perl and it told
me that it was installed at /usr/bin/perl. I also tried a perl -v and
that works without problem. Here is the script I'm running from the
secede2.pl file.

#!/usr/bin/perl -p
s/CA/Republic of California/;

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.


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

iD8DBQFCgrbYrUKg47Bf38URAie0AJ9+FiwLY9tA8eYEgsTWNVNA/paZOwCfRaTk
AKdzWhp7YN79IIRX1BpfbLw=
=Wb3a
-----END PGP SIGNATURE-----




More information about the ubuntu-users mailing list