OpenExtensions for z/VM "Q"s and "A"s
Question:
Does OpenExtensions for z/VM support the "magic value" convention to
set up an alternate script interpreter ? I just tried setting the
first line to
#!/home/gxxxxxx/scratch/bin/perl
and got an error message as if OE was trying to use POSIX-shell to interpret the file, rather than the perl that I was expecting.
Response: The "pound-bang" syntax is not supported on OpenExtensions for z/VM and, apparently, we're not alone. For systems that do not support it, Wall and Schwartz in Programming Perl recommend replacing
#!/usr/bin/perlwith this:
eval 'exec /usr/bin/perl -S $0 ${1+"$@"}' if 0;
For more questions and answers, go to our archive of questions and answers.