rjreb has asked for the wisdom of the Perl Monks concerning the following question:
I finally upgraded a mail server from Debian Lenny to Wheezy and now a script for my mail admin broke. I believe the relevant lines are
use strict; BEGIN { my $dir; require File::Spec; if ( !($dir = $ENV{MT_HOME}) ) { $dir = ($0 =~ m!(.*[/\\])!) ? $1 : './'; $ENV{MT_HOME} = $dir; } unshift @INC, $dir; } # # Include Logger module # Calls on VMA::Logger module # use VMA::Logger qw(Logger); # # Grab arguments from command line # Split argument into array # my @argarray = split(/:/,$ARGV[0]); my $is_logging = $argarray[0]; my $logdir = $argarray[1]; my $func = $argarray[2];
Now when I try and run it I get
Use of uninitialized value in split at /var/www/vmailadmin/includes/bin/backend.pl line 42.I'm just looking for some direction here on what changed between 5.8 and 5.14 that would cause this. Any help would be most appreciated.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Upgrade from 5.8 to 5.14 broke me
by syphilis (Archbishop) on Aug 08, 2013 at 23:36 UTC | |
by rjreb (Initiate) on Aug 12, 2013 at 18:09 UTC | |
by rjreb (Initiate) on Aug 12, 2013 at 18:39 UTC |