Perl problems

Stephen R Laniel steve at laniels.org
Thu May 12 02:51:32 UTC 2005


On Wed, May 11, 2005 at 10:42:57PM -0400, Joe Wamsley wrote:
> 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

Yeah, the path is almost certainly the problem if
'./secede.pl names.txt' works. Somewhere in your .bashrc, do

export PATH=${PATH}:.

Note the trailing dot in the line above -- it says, "Always
include the current directory in the PATH."

After you've added that to .bashrc, do

source .bashrc

(or equivalently '. bashrc' ["dot bashrc"])

to load the changes to your PATH. Now if you type

secede.pl names.txt

it should work fine.

-- 
Stephen R. Laniel
steve at laniels.org
+(617) 308-5571
http://laniels.org/
PGP key: http://laniels.org/slaniel.key
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20050511/a7a59325/attachment.sig>


More information about the ubuntu-users mailing list