if ( $chemical eq $periodicTable[$i][1] ) {
Also, consider using a hash for your table because it facilitates look-up.
UPDATE: CPAN is a handy resource: Chemistry::Elements
In reply to Re: Array problems.
by toolic
in thread Array problems.
by thearkranger
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |