in reply to Re^2: How do foreach loops use their list values?
in thread [Solved]How do foreach loops use their list values?
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?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: How do foreach loops use their list values?
by enderk (Novice) on Nov 03, 2013 at 01:12 UTC | |
by Athanasius (Archbishop) on Nov 03, 2013 at 03:31 UTC | |
by enderk (Novice) on Nov 03, 2013 at 09:20 UTC | |
by AnomalousMonk (Archbishop) on Nov 03, 2013 at 11:02 UTC |