in reply to Multiple Choice Quiz
towhile (<QSTNS>) { $_ =~ /^(Quiz)(\d)$/; $max = $2; }
It's more Perlish and clearer.while (<QSTNS>) { ($max) =~ /Quiz(\d)/; }
could be much more efficent using split. -- Dave$_ =~ /([^,]+),([^,]+),([^,]+),([^,]+)/; push (@A,$1); push (@B,$2); push (@C,$3); push (@D,$4);
|
|---|