in reply to Tutorial RFC: Guide to Perl references, Part 1
Hi stevieb, This is well done, a lot of work!
I would consider shortening if possible; people have short attention spans sadly.
Also I suggest using "anecdotal" var names in your tutorials, again, it holds attention better. Like this:
# Very clear to a clear thinker my %hash = ( a => 1, b => 2, c => 3 ); while ( my ( $key, $value ) = each %hash ){ say "key: $key, value: $value"; }
# More captivating to your average thinker my %rebels = ( Luke => 'Jedi', Han => 'human', Chewbacca => 'Wookie' ) +; while ( my ( $name, $species ) = each %rebel ){ say "Name: $name, Species: $species"; }
Just my $0.02 :-)
|
---|