in reply to Re^3: Difference between a perl script & shell script
in thread Difference between a perl script & shell script

Unless the admin has done

ln -s /usr/bin/sh /usr/bin/csh

And/or for added entertainment value:

$ stat -c %N /usr/bin/csh ,,/usr/bin/csh" -> ,,/bin/bash"

Yes I've seen this on production systems :-/. I personally find it much easier to test and rely on Perls $] than the various wacky shell configurations out there. YMM undoubtedly V.


Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it. -- Brian W. Kernighan

Replies are listed 'Best First'.
Re^5: Difference between a perl script & shell script
by swampyankee (Parson) on Dec 19, 2005 at 15:52 UTC

    Crap like that is one of the reasons that they kept the sysadmins in a different, secure building in my last Unix-universe (actually, AIX) position. The sysadmins also did such lovable actions as neglecting to renew compiler licenses, which made it a trifle tough to get any work done. They would also change the directory structure without telling anybody.

Re^5: Difference between a perl script & shell script
by Perl Mouse (Chaplain) on Dec 19, 2005 at 15:18 UTC
    Yeah, but that's a severly broken system. You might as well have a system admin that does
    ln -s /usr/bin/python /usr/bin/perl
    and suddenly your shell scripts are more portable.
    Perl --((8:>*