[Purdue-pm] Problem with she-bang and PERL5OPT

Rick Westerman westerman at purdue.edu
Thu Nov 20 11:52:58 PST 2014


>From all I have read the following program should work:


#!/bin/env PERL5OPT=-T perl

warn 'Taint mode is '.(${^TAINT} ? 'on' : 'off');

# End

But when I run it, at least on the RCAC and on the Genomics systems, the program just hangs.  Take away PERL5OPT and it works.  Put in '-w' instead of '-T' and it fails in the same manner.  Quoting does not seem to matter.  Just running from the command line:

/bin/env PERL5OPT=-T perl program.file

Works fine.

I am mystified. Anyone have an idea?

Thanks,

-- 
Rick Westerman 
westerman at purdue.edu

Bioinformatics specialist at the Genomics Facility.
Phone: (765) 494-0505           FAX: (765) 496-7255
Department of Horticulture and Landscape Architecture
625 Agriculture Mall Drive
West Lafayette, IN 47907-2010
Physically located in room S049, WSLR building


More information about the Purdue-pm mailing list