Permalink
Browse files

Various changes

  • Loading branch information...
jtpalmer committed May 24, 2012
1 parent 3bdb5b3 commit 48efbeb4dd8d86d8c502d38d011c78bf27a79a70
Showing with 7 additions and 3 deletions.
  1. +7 −3 bin/sdl_maze.pl
View
@@ -1,13 +1,17 @@
#!perl
-
use strict;
use warnings;
-package
- sdl_maze;
+BEGIN {
+ if ( $^O eq 'darwin' && $^X !~ /SDLPerl$/ ) {
+ exec 'SDLPerl', $0, @ARGV or die "Failed to exec SDLPerl: $!";
+ }
+}
use Games::Maze::SDL;
+# PODNAME: maze.pl
# ABSTRACT: Play the game!
Games::Maze::SDL->new->run(@ARGV);
+

0 comments on commit 48efbeb

Please sign in to comment.