aboutsummaryrefslogtreecommitdiff
path: root/SBO-Lib/lib/SBO/Lib.pm
diff options
context:
space:
mode:
authorJacob Pipkin <j@dawnrazor.net>2012-11-05 03:19:39 -0600
committerJacob Pipkin <j@dawnrazor.net>2012-11-05 03:19:39 -0600
commit62b6156406606a18e9cdbc4fdc52bedae4f21835 (patch)
treeacb9a7126a9116dabc54ea0e8d2ec1cb7c40b74c /SBO-Lib/lib/SBO/Lib.pm
parent974bead83585ebb14ded73b043506a86d1160a0b (diff)
downloadsbotools2-62b6156406606a18e9cdbc4fdc52bedae4f21835.tar.xz
git rid of prototype for open_fh. all tests pass.
Diffstat (limited to 'SBO-Lib/lib/SBO/Lib.pm')
-rw-r--r--SBO-Lib/lib/SBO/Lib.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/SBO-Lib/lib/SBO/Lib.pm b/SBO-Lib/lib/SBO/Lib.pm
index 9583a4f..07e3975 100644
--- a/SBO-Lib/lib/SBO/Lib.pm
+++ b/SBO-Lib/lib/SBO/Lib.pm
@@ -68,7 +68,7 @@ sub script_error (;$) {
}
# sub for opening files, second arg is like '<','>', etc
-sub open_fh ($$) {
+sub open_fh {
exists $_[1] or script_error 'open_fh requires two arguments';
unless ($_[1] eq '>') {
-f $_[0] or script_error 'open_fh first argument not a file';
@@ -79,7 +79,7 @@ sub open_fh ($$) {
}
sub open_read ($) {
- return open_fh shift, '<';
+ return open_fh (shift, '<');
}
# global config variables
@@ -227,7 +227,7 @@ sub get_sbo_location {
@sbos = @$tmp;
}
state $store = {};
- # if scalar context and we've already have the location, return it now.
+ # if scalar context and we already have the location, return it now.
unless (wantarray) {
return $$store{$sbos[0]} if exists $$store{$sbos[0]};
}