[Za-pm] [art001] comments
Nick Cleaton
nick at cleaton.net
Mon Jun 9 03:36:08 CDT 2003
> http://za.pm.org/articles/001/index.html
That's a nice introduction, just a couple of comments about some
of the code:
> print "\'$_\' " foreach @ARGV;
You don't need to escape the singlequotes there, and I think
the extra backslashes make it more confusing than it needs to
be.
print "'$_' " foreach @ARGV;
> for ( $t = 1; $t < 5; $t++ ) {
That's the C way of doing for loops, it can be written in Perl
as:
for $t ( 1..4 ) {
... which might be less confusing for those without a C
background.
A couple of typos:
> # A hash is similar to a hash, whith the distinct difference that the
# A hash is similar to an array, with the distinct difference that the
--
Nick
More information about the Za-pm
mailing list