change initial #! to #!/bin/env perl
[spider.git] / perl / console.pl
index ea46553f39acce2122c0f103f3a038e9c815f5cf..7bcb2abde06d7c0675e9aa4ee21fcd783944b3c3 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/bin/env perl
 #
 # this is the operators console.
 #
@@ -14,6 +14,7 @@
 # 
 
 require 5.004;
+use warnings;
 
 # search local then perl directories
 BEGIN {
@@ -526,7 +527,7 @@ $Text::Wrap::Columns = $cols;
 my $lastmin = 0;
 
 
-$conn = IntMsg->connect($clusteraddr, $clusterport, \&rec_socket);
+$conn = IntMsg->connect($clusteraddr, $clusterport, rproc => \&rec_socket);
 $conn->{on_connect} = \&on_connect;
 $conn->{on_disconnect} = \&on_disconnect;