SDL2::Version - Information About the Version of SDL in Use
use SDL2 qw[:version]; SDL_GetVersion( my $ver = SDL2::version->new ); CORE::say sprintf 'SDL version %d.%d.%d', $ver->major, $ver->minor, $ver->patch;
SDL2::Version represents the library's version as three levels: major, minor, and patch level.
major( )
Returns value which increments with massive changes, additions, and enhancements.
minor( )
Returns value which increments with backwards-compatible changes to the major revision.
patch( )
Returns value which increments with fixes to the minor revision.
Copyright (C) Sanko Robinson.
This library is free software; you can redistribute it and/or modify it under the terms found in the Artistic License 2. Other copyrights, terms, and conditions may apply to data transmitted through this module.
Sanko Robinson <sanko@cpan.org>
To install SDL2::FFI, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SDL2::FFI
CPAN shell
perl -MCPAN -e shell install SDL2::FFI
For more information on module installation, please visit the detailed CPAN module installation guide.