I'm in the process of brushing up my skills using Perl. As a starter, I tried to convert an existing KSH script that I wrote to Perl.
Just added:
Code:
#!/usr/bin/perl
use strict;
use warnings;
to the start of the script.
Renamed my script from bancsadm.ksh to bancsadm.pl (just for identification purpose) and called the new file. I was expecting errors, but the script fired beautifully.
I invoked the script again as:
and this time a lot of errors were generated.
What I'd like to know is why the perl environment did not fire the first time even though I included
#!/usr/bin/perl at the start of the script.