B
Bruce Bowler
I'll start by saying I'm NOT a perl programmer and I'm not sure this is
the right group, but I'm sure you'll tell me where to go if it's not
I have a perl script that I didn't write that works with perl 5.005_03
(solaris 2.7). It doesn't even compile with 5.8.0 (Redhat 8.0).
The error message from the compiler is
Can't modify reference constructor in list assignment at ./f77toM.pl line 465, near ");"
Execution of ./f77toM.pl aborted due to compilation errors.
The code in question is
for ( $ifmt=0;$ifmt<=$#fmt_array;$ifmt++ ) {
($space_str,$nchars,$imat,\@fmt_matlab,\@fmt_matvar) =
parse_write_fmt($space_str,$nchars,$ifmt,$imat,\@fmt_array,\@fmt_matlab,\@fmt_matvar,\@fmtstr,\@var_type);
} # end for on ifmt
where line 465 is the "parse_write_fmt" line.
The entire script is almost 3K lines long so I wont post it, but if you
want to examine the whole thing, it can be found at
ftp://ftp.math.umn.edu/pub/MCIM/f77toM.pl.gz
TIA,
Bruce
--
+-------------------+---------------------------------------------------+
Bruce Bowler | The most dangerous thing in the world is to leap a
1.207.633.9600 | chasm in two jumps. - David Lloyd George
(e-mail address removed) |
+-------------------+---------------------------------------------------+
the right group, but I'm sure you'll tell me where to go if it's not
I have a perl script that I didn't write that works with perl 5.005_03
(solaris 2.7). It doesn't even compile with 5.8.0 (Redhat 8.0).
The error message from the compiler is
Can't modify reference constructor in list assignment at ./f77toM.pl line 465, near ");"
Execution of ./f77toM.pl aborted due to compilation errors.
The code in question is
for ( $ifmt=0;$ifmt<=$#fmt_array;$ifmt++ ) {
($space_str,$nchars,$imat,\@fmt_matlab,\@fmt_matvar) =
parse_write_fmt($space_str,$nchars,$ifmt,$imat,\@fmt_array,\@fmt_matlab,\@fmt_matvar,\@fmtstr,\@var_type);
} # end for on ifmt
where line 465 is the "parse_write_fmt" line.
The entire script is almost 3K lines long so I wont post it, but if you
want to examine the whole thing, it can be found at
ftp://ftp.math.umn.edu/pub/MCIM/f77toM.pl.gz
TIA,
Bruce
--
+-------------------+---------------------------------------------------+
Bruce Bowler | The most dangerous thing in the world is to leap a
1.207.633.9600 | chasm in two jumps. - David Lloyd George
(e-mail address removed) |
+-------------------+---------------------------------------------------+