http://www.perlmonks.org?node_id=1196261
SouthWind has asked for the wisdom of the Perl Monks concerning the following question:

I use 5.24 Strawberry Perl Portable Edition from http://strawberryperl.com/releases.html

I install OpenGL::Shader with cpan,it looks ok, but when I run test.pl, Perl say: #version directive missing.

D:\strawberryportable>cpan OpernGL::Shader Loading internal null logger. Install Log::Log4perl for logging messag +es CPAN: CPAN::SQLite loaded ok (v0.211) CPAN: LWP::UserAgent loaded ok (v6.26) CPAN: Time::HiRes loaded ok (v1.9742) Fetching with LWP: http://cpan.strawberryperl.com/authors/01mailrc.txt.gz CPAN: YAML::XS loaded ok (v0.65) Fetching with LWP: http://cpan.strawberryperl.com/modules/02packages.details.txt.gz Fetching with LWP: http://cpan.strawberryperl.com/modules/03modlist.data.gz Creating database file ... Done! D:\strawberryportable>perl test.pl Fragment shader: WARNING: 0:3: '' : #version directive missing
Then I download OpenGL::Shader from:

https://metacpan.org/pod/OpenGL::Shader

D:\strawberryportable\OpenGL-Shader-1.01>perl Makefile.PL Checking if your kit is complete... Looks good Generating a dmake-style Makefile Writing Makefile for OpenGL::Shader Writing MYMETA.yml and MYMETA.json <p> D:\strawberryportable\OpenGL-Shader-1.01>dmake cp Shader/Common.pm blib\lib\OpenGL\Shader\Common.pm cp Shader.pod blib\lib\OpenGL\Shader.pod cp Shader/Objects.pm blib\lib\OpenGL\Shader\Objects.pm cp Shader/GLSL.pm blib\lib\OpenGL\Shader\GLSL.pm cp Shader.pm blib\lib\OpenGL\Shader.pm cp Shader/ARB.pm blib\lib\OpenGL\Shader\ARB.pm cp shader-test.pl blib\lib\OpenGL\shader-test.pl cp Shader/CG.pm blib\lib\OpenGL\Shader\CG.pm <p> D:\strawberryportable\OpenGL-Shader-1.01>dmake test "D:\strawberryportable\perl\bin\perl.exe" "-MExtUtils::Command::MM" "- +MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, + 'blib\lib', 'blib\arch')" t/*.t t/OpenGL-Shader.t .. <p> ________________________________________<p> Testing OpenGL::Shader<p> ----------------------------------------<p> * ok: Installed: OpenGL v0.7 * ok: OpenGL::Shader module loaded: v1.01 Available shader types: ARB v1.0 - ARBfp1.0 and ARBvp1.0 Assembly GLSL v4.40 - OpenGL Shader Language * ok: 2 shader type(s) reported Use of uninitialized value $type in uc at D:\strawberryportable\OpenGL +-Shader-1.01\blib\lib/OpenGL/Shader/Common.pm line 109. Instantiated ARB v1.0 * ok: Loaded ARB shader from: fragment.arb, vertex.arb Use of uninitialized value $type in uc at D:\strawberryportable\OpenGL +-Shader-1.01\blib\lib/OpenGL/Shader/Common.pm line 109. Instantiated GLSL v4.40 * fail: Unable to load GLSL shader: Fragment shader: WARNING: 0:2: '' +: #version directive missing * skip: CG shader test <p> ________________________________________ t/OpenGL-Shader.t .. Failed 1/6 subtests (less 1 skipped subtest: 4 okay) Test Summary Report ------------------- t/OpenGL-Shader.t (Wstat: 0 Tests: 6 Failed: 1) Failed test: 5 Files=1, Tests=6, 1 wallclock secs ( 0.05 usr + 0.03 sys = 0.08 CPU +) Result: FAIL Failed 1/1 test programs. 1/6 subtests failed. dmake: Error code 255, while making 'test_dynamic' <p> D:\strawberryportable\OpenGL-Shader-1.01>dmake test "D:\strawberryportable\perl\bin\perl.exe" "-MExtUtils::Command::MM" "- +MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, + 'blib\lib', 'blib\arch')" t/*.t t/OpenGL-Shader.t .. ________________________________________ Testing OpenGL::Shader ---------------------------------------- * ok: Installed: OpenGL v0.7 * ok: OpenGL::Shader module loaded: v1.01 Available shader types: ARB v1.0 - ARBfp1.0 and ARBvp1.0 Assembly GLSL v4.40 - OpenGL Shader Language * ok: 2 shader type(s) reported Use of uninitialized value $type in uc at D:\strawberryportable\OpenGL +-Shader-1.01\blib\lib/OpenGL/Shader/Common.pm line 109. Instantiated ARB v1.0 * ok: Loaded ARB shader from: fragment.arb, vertex.arb Use of uninitialized value $type in uc at D:\strawberryportable\OpenGL +-Shader-1.01\blib\lib/OpenGL/Shader/Common.pm line 109. Instantiated GLSL v4.40 * fail: Unable to load GLSL shader: Fragment shader: WARNING: 0:2: '' +: #version directive missing * skip: CG shader test ________________________________________ t/OpenGL-Shader.t .. Failed 1/6 subtests (less 1 skipped subtest: 4 okay) Test Summary Report ------------------- t/OpenGL-Shader.t (Wstat: 0 Tests: 6 Failed: 1) Failed test: 5 Files=1, Tests=6, 0 wallclock secs ( 0.05 usr + 0.00 sys = 0.05 CPU +) Result: FAIL Failed 1/1 test programs. 1/6 subtests failed. dmake: Error code 255, while making 'test_dynamic'
How can I solve the problem?

Thanks!