diff --git a/misc-scripts/ontology/scripts/compute_closure.pl b/misc-scripts/ontology/scripts/compute_closure.pl
index 5f9cfac8f94c1fcda7da536b980bff76d8abbbdd..e5a44426ddec4fe28597223cb78d36aaf3a4a022 100755
--- a/misc-scripts/ontology/scripts/compute_closure.pl
+++ b/misc-scripts/ontology/scripts/compute_closure.pl
@@ -1,4 +1,4 @@
-#!/usr/local/ensembl/bin/perl -w
+#!/usr/bin/env perl
 
 # Modified from "Relational Modeling of
 # Biological Data: Trees and Graphs", page 2:
diff --git a/misc-scripts/ontology/scripts/load_OBO_file.pl b/misc-scripts/ontology/scripts/load_OBO_file.pl
index b101929ccc116d2d3dbfc0e7db489415ba92ae55..28126ca692cf2147e9480c9ef7c144c01805d2b1 100755
--- a/misc-scripts/ontology/scripts/load_OBO_file.pl
+++ b/misc-scripts/ontology/scripts/load_OBO_file.pl
@@ -1,4 +1,4 @@
-#!/usr/local/ensembl/bin/perl -w
+#!/usr/bin/env perl
 
 use strict;
 use warnings;