Is Perl 5.6.1 stable on YDL?


Subject: Is Perl 5.6.1 stable on YDL?
From: Randall Perry (rgp@systame.com)
Date: Thu Jul 26 2001 - 12:16:02 MDT


I've got a perl script running running fine on a YDL (kernel 2.2.18) server
using Perl 5.00503 . I'm setting up a new drive to install with many
updated programs, including Perl 5.6.1 and kernel 2.2.19 (2.4 is too
unstable).

The script breaks in 5.6.1. First I discovered that function declarations
had to be put before the main code. Fixed that, but then I got an 'Too many
arguments for send_mail @ line xx near $admin_recipients' error.

Got some code stubs below showing the variables and function declarations
and the function call. If anyone can see the problem, or if 5.6.1 is no good
on YDL please let me know.

I was supposed to have the new drive installed by this weekend :-(

*******************
use strict;

## var declarations
my ($admin_recipients, %cust_data, $flag, $file);

$admin_recipients = ['abc@acme.com', 'def@acme.com', 'ghi@acme.com']; #
array of admin recipients

## the function generating the errors
sub send_mail() {
    my ($flag, $cust_data, $file, $admin_recipients) = @_;
    ...
    ...
}

** MAIN **
## the function call
if (! ($ret = send_mail('admin', \%cust_data, $cust_file_path,
$admin_recipients)) eq 1) {
    ...
    ...
}

*******************

-- 
Randy Perry
sysTame
Mac Consulting/Sales



This archive was generated by hypermail 2a24 : Thu Jul 26 2001 - 11:20:23 MDT