Wei, Alice J. wrote:
However, when I tried to execute a basic hello script in Perl, it tells me
bash: ./total.pl: /usr/local/bin/perl: bad interpreter: No such file or directory
If you execute [#which perl ] it should return /usr/bin/perl .
Do you have a line at the top of your total.pl script like this
(#!/usr/local/bin/perl).
It should read /usr/bin/perl.
Alan