- or download this
foreach my $line (@configFile) {
next if $line =~ /^\s*$/;
...
- or download this
foreach (@configFile) {
chomp; # careful of last line in file
...
$error = 1;
}
}
- or download this
when (/^\s*(ScriptName:)\s+(\S+)\s*$/) {
$tag= $1;
$scriptName= $2;
}
- or download this
when (/^\s*Step\s+(\d):\s*(.*)/) {
$stepNum = $1;
$command = $2;
$step[$stepNum] = $command;
}
- or download this
foreach my $command (@step) {
next unless defined $command; # skip unused numbers
my $ret= system ($command);
...
}