Path: utzoo!attcan!uunet!wuarchive!cs.utexas.edu!rutgers!rochester!pt.cs.cmu.edu!o.gp.cs.cmu.edu!andrew.cmu.edu!rm55+ From: rm55+@andrew.cmu.edu (Rudolph T. Maceyko) Newsgroups: comp.lang.perl Subject: Best of both worlds? Message-ID: <8b7GHJu00Vp6M3kosR@andrew.cmu.edu> Date: 18 Oct 90 03:43:17 GMT Organization: Carnegie Mellon, Pittsburgh, PA Lines: 20 Is it possible to make the same PERL script work on two machines that keep PERL in different places without having to manually include perl before each command execution? On machine A, PERL lives in /usr/contributed/bin. On machine B, it's in /usr/local/bin. I have access to the same file on both A and B, but have to specify "perl perl-script args" on machine B since the files begin with #!/usr/contributed/bin/perl. I can't use any kind of csh magic-number hack because (as I found out long ago) PERL mucks with the magic number. Suggestions? Or was this too confusing... Rudy +---------+ : +-----+ : Rudy Maceyko : : +-+ : : rm55+@andrew.cmu.edu : : : +-+ : rtmst@unix.cis.pitt.edu +-+ +-+-+-+