Skip to content

Commit

Permalink
Add darwin SDLPerl check, etc.
Browse files Browse the repository at this point in the history
  • Loading branch information
jtpalmer committed May 21, 2012
1 parent 625211f commit bfb4771
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions bin/snake.pl
@@ -1,9 +1,19 @@
#!perl
use strict;
use warnings;

BEGIN {
if ( $^O eq 'darwin' && $^X ne 'SDLPerl' ) {
exec 'SDLPerl', $0, @ARGV or die "Failed to exec SDLPerl: $!";
}
}

use Games::Snake;

# PODNAME: snake.pl
# ABSTRACT: Play the game

Games::Snake->new()->run();

exit;

0 comments on commit bfb4771

Please sign in to comment.