...
How to use the Software Collections version of a runtime program (eg, perl, python) from a script (the alternative process above might be safer since it checks to see if the software collection is installed first)
#!/usr/bin/scl enable rh-perl524 -- perl
print "$^V\n";
The output of that script shows the version of perl found and used is perl 5.24 from SCL:
ksa@cdlogin3 $ scl --list | grep perl
rh-perl524
ksa@cdlogin3 $
ksa@cdlogin3 $cat ~ksa/public/perl.scl.example.pl
#!/usr/bin/scl enable rh-perl524 -- perl
print "$^V\n";
ksa@cdlogin3 $
ksa@cdlogin3 $~ksa/public/perl.scl.example.pl
v5.24.0
The Red Hat Developer Toolset (DTS) is intended to give developers access to updated compilers and tools for C and C++ development.
...