In particular, consider the statement
my $alphabet = qw( A T G C );
and maybe do a little experiment to print $alphabet and see just what it is.
Update: The next statement
my @bases = @$alphabet;
suggests $alphabet is supposed to be an array reference that is de-referenced to initialize the @bases array, but since $alphabet is used nowhere else, why not just initialize @bases directly from the qw(A T G C) list of bases?
In reply to Re^3: How do foreach loops use their list values?
by AnomalousMonk
in thread [Solved]How do foreach loops use their list values?
by enderk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |