- or download this
#!/usr/bin/perl -wT
use strict;
...
}
}
}
- or download this
I0=nameofplant Q0=\d+ P0=\d+\.[\d]{2} IT0=\d+\.[\d]{2}
I1=anotherplant Q1=\d+ P1=\d+\.[\d]{2} IT1=\d+\.[\d]{2}
etc...
- or download this
my $query = CGI->new();
@names = $query->param;
...
...
&tohtml( $name, $values );
}
}
- or download this
if ( $name =~ /^I\d+$/ && $values =~ /[A-Za-z\s_\'\-\.]+/ ) { #I\d+
+
print "<tr>\n<td><input type='hidden' name=\"" . $name . "
+\" value=\"" . $values . "\"><span class='b'>" . $name . "</span> &nb
+sp; " . $values . "<\/td>\n"; # start new row
next;
...
print "<td style='text-align:center;'><input type='hidden'
+ name=\"" . $name . "\" value=\"" . $values . "\">Quant: <span class=
+'b'>" . $values . "</span></td>\n";
next;
# plus 4 more for P\d+ and IT\d+ cases and another pair of speci
+al cases
- or download this
"<tr><td>ID: " . $name . " $values "; #(where the inner loop is at [0]
+)
" </td><td>Quantity: " . $values[1];