in reply to ftpbackup
It looks you are testing for comments twice.
andfor (my $nr = 0; $nr < $filearrnr; $nr++) { splice (@filearr, $nr, 1) if ($filearr[$nr] =~ /^#/) }
You might consider the more perlish, more compact constructionnext if ($filearr[$nr] =~ /^#/);
instead of:foreach my $nrl (@hostarr){}
for (my $nr1 = 0; $nr1 < $hostarrnr; $nr1++)
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: ftpbackup
by enaco (Novice) on Nov 09, 2001 at 23:45 UTC |