in reply to Use of uninitialized value in concatenation (.) or string
++jwkrahn and ++bichonfrise74.
Two other errors are lurking in the code.
Working, tested code:
Output:#!/usr/bin/perl use strict; use warnings; my @steps = ( 'ele1.0', 'ele0.5' ); die if @steps < 2; open my $MIN_RUN, '>', 'run' or die "Cannot open 'run': $!"; my $last_step = $steps[0]; for my $step ( @steps[1..$#steps] ) { print $MIN_RUN "/opt/sander -i $step.min -p ../$step.prmtop -o $st +ep$step.e &\n"; print $MIN_RUN "/opt/sander -i $step.min -p ../../$last_step/$last +_step.prmtop -o $step$last_step.e &\n"; $last_step = $step; } close $MIN_RUN or warn;
/opt/sander -i ele0.5.min -p ../ele0.5.prmtop -o ele0.5ele0.5.e & /opt/sander -i ele0.5.min -p ../../ele1.0/ele1.0.prmtop -o ele0.5e +le1.0.e &
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Use of uninitialized value in concatenation (.) or string
by oscarjiao (Novice) on Aug 23, 2009 at 22:56 UTC | |
by jwkrahn (Abbot) on Aug 23, 2009 at 23:07 UTC | |
by Marshall (Canon) on Aug 24, 2009 at 09:18 UTC |