set variable PATH

Hi,

i know that this topic discussed for many times but although i had researched them i couldnt succeed in my problem.
i am following a step-by-step instruction guide and must do the following:

-------------
To ensure access, set the path PATH $ORACLE_HOME/perl/bin:$PATH and set the Perl library path setenv PATH $ORACLE_HOME/perl/lib/5.6.1:$PATH.
-------------

i am using sun solaris os. 9
terminal, switch to oracle user,
then type 
export PATH=$PATH:/u01/app/oracle/product/10.1.2/middle/perl/bin 

after that get the message :

PATH=/usr/bin:/u01/app/oracle/product/10.1.2/middle/bin:/u01/app/oracle/product/10.1.2/middle/dcm/bin:/u01/app/oracle/product/10.1.2/middle/opmn/bin:/usr/sbin/:/usr/openwin/bin:/usr/ucb:/etc:.:/u01/app/oracle/product/10.1.2/middle/perl/bin: is not an identifier

 :( 

tried this one again

setenv PATH $/u01/app/oracle/product/10.1.2/middle/perl/lib/5.6.1:$PATH
setenv: not found

i am really dumb, know nothing about unix. please help!

cheers,

what is the shell that you are using ?

i believe setenv is supported in csh and not in ksh.

if your requirement is adding a specified path to your PATH variable,
just do this,

to add new dir /oracle/ora_home/newdir/

PATH=/oracle/ora_home/newdir:$PATH
export PATH

i am using bash
great!!
that worked, my thanks to you! :stuck_out_tongue: