About cookies on this site Our websites require some cookies to function properly (required). In addition, other cookies may be used with your consent to analyze site usage, improve the user experience and for advertising. For more information, please review your options. By visiting our website, you agree to our processing of information as described in IBM’sprivacy statement. To provide a smooth navigation, your cookie preferences will be shared across the IBM web domains listed here.
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.