From 4730dc048d49d3ecaa9ff0f9174e3fdb56aa5c2e Mon Sep 17 00:00:00 2001 From: Mariano Alvira Date: Fri, 8 May 2009 15:28:34 -0400 Subject: [PATCH] fixed syntax errors. --- mc1322x-load.pl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mc1322x-load.pl b/mc1322x-load.pl index 2863a39b3..f454736bd 100755 --- a/mc1322x-load.pl +++ b/mc1322x-load.pl @@ -33,7 +33,7 @@ if($filename eq '') { my $ob = Device::SerialPort->new ($term) or die "Can't start $term\n"; # next test will die at runtime unless $ob -if(($filename eq '')) die "you must specify a file with -f\n"; +if ($filename eq '') { die "you must specify a file with -f\n"; } $ob->baudrate($baud); $ob->parity('none'); @@ -68,7 +68,7 @@ my $s = 0; print $ret . "\n"; - if (defined $filename) { + if (-e $filename) { my $size = -s $filename; @@ -88,9 +88,9 @@ my $s = 0; } } - if(-e $second) {$s=1; $filename = $second; continue SEND; } + if(-e $second) {$s=1; $filename = $second; next SEND; } -} +}; print "done.\n";