in reply to different first line in perl

which(1) uses the PATH environment variable to find the perl program (see man pages). #!perl will probably do the same thing, depending on the implementation of which. As mentioned above, I don't like either, prefering the more conventional #!/usr/bin/perl, but "if it ain't broke don't fix it".