run perl path

Hi, I heard that perl must be run in the
[user/bin]

Open in new window

.
However I can run the script under my own folder
[user@user ~]

Open in new window

Why?(Fedora 14)

Thanks.
zhshqzycAsked:
Who is Participating?
 
farzanjConnect With a Mentor Commented:
There is no restriction on Perl to run on a specific folder.

At the top of your script, you need to include the path so that it can locate the compiler.  It has to be include in your path if you want to call it like

perl program.pl

Otherwise you will have to mention your complete path.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.