From 87364ee0261a62fe06ff9cd8b1a6df2096f522fc Mon Sep 17 00:00:00 2001 From: Davs Date: Fri, 28 Nov 2014 10:59:47 +0100 Subject: [PATCH] Use #!/usr/bin/env perl Instead of using the hardcoded /usr/bin/perl executable, use /usr/bin/env perl, so the perlbrew version could be ran. --- lib/Dancer2/Cookbook.pod | 2 +- script/dancer2 | 2 +- t/psgi_app_forward_and_pass.t | 2 +- t/template_tiny/01_compile.t | 2 +- t/template_tiny/02_trivial.t | 2 +- t/template_tiny/03_samples.t | 2 +- t/template_tiny/04_compat.t | 2 +- t/template_tiny/05_preparse.t | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/Dancer2/Cookbook.pod b/lib/Dancer2/Cookbook.pod index 2df116f13..5e572b2c1 100644 --- a/lib/Dancer2/Cookbook.pod +++ b/lib/Dancer2/Cookbook.pod @@ -18,7 +18,7 @@ Dancer2 has been designed to be easy to work with - it's trivial to write a simple web app, but still has the power to work with larger projects. To start with, let's make an incredibly simple "Hello World" example: - #!/usr/bin/perl + #!/usr/bin/env perl use Dancer2; diff --git a/script/dancer2 b/script/dancer2 index 96346a3b1..8a0eec725 100755 --- a/script/dancer2 +++ b/script/dancer2 @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl # PODNAME: dancer2 # ABSTRACT: Dancer2 command line interface diff --git a/t/psgi_app_forward_and_pass.t b/t/psgi_app_forward_and_pass.t index 4086417d0..84cb33167 100644 --- a/t/psgi_app_forward_and_pass.t +++ b/t/psgi_app_forward_and_pass.t @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl use strict; use warnings; diff --git a/t/template_tiny/01_compile.t b/t/template_tiny/01_compile.t index 73b93d519..c167e7e23 100644 --- a/t/template_tiny/01_compile.t +++ b/t/template_tiny/01_compile.t @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl use strict; diff --git a/t/template_tiny/02_trivial.t b/t/template_tiny/02_trivial.t index dc3a0207c..0c81b6efe 100644 --- a/t/template_tiny/02_trivial.t +++ b/t/template_tiny/02_trivial.t @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl use strict; diff --git a/t/template_tiny/03_samples.t b/t/template_tiny/03_samples.t index ed0ec694a..135a7db88 100644 --- a/t/template_tiny/03_samples.t +++ b/t/template_tiny/03_samples.t @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl use strict; diff --git a/t/template_tiny/04_compat.t b/t/template_tiny/04_compat.t index 8034efa11..a5ea1ccce 100644 --- a/t/template_tiny/04_compat.t +++ b/t/template_tiny/04_compat.t @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl use strict; diff --git a/t/template_tiny/05_preparse.t b/t/template_tiny/05_preparse.t index 9277f38b5..51c2c36cf 100644 --- a/t/template_tiny/05_preparse.t +++ b/t/template_tiny/05_preparse.t @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl use strict;