develooper Front page | perl.beginners | Postings from April 2003

Thanks! Conditional Looping Revisited

Thread Next
From:
Debbie Cooper
Date:
April 27, 2003 10:42
Subject:
Thanks! Conditional Looping Revisited
Message ID:
IIEJLJCPGNLOFKLAJENPEEOMCKAA.debbie.cooper@stevensoncompany.com
A big thank you to Mr. Krahn.  Your code works great!  Now, I have two
questions.  One, it looks like you only added a couple of lines of code.
Can you tell me what this line does:

            next if $. == 1 and -s OUT;

I think I get everything but the "and -s."  Also, the more I see of the
solutions on this list the more I'm convinced this is not an easy language
to learn.  Any suggestions for how to get a grasp of this language?  I have
two O'Reilly books, Learning Perl and Programming Perl and I'm slowly going
through the Learning Perl book  but it isn't easy.  And I've been
programming for a lot of years!  Is there some way to step through the code
to see what it's doing?  (I lied about two questions)  For example, when I
program Java, I put in a lot of System.out.printlns if I want to see what my
code is doing (I don't use an IDE).  Also, is this the right language to do
quick text processing like I've been asking?  I get the impression from my
reading that maybe this isn't the correct solution.  What do all of you
think?

This list is a big help and you guys are awesome!  Thanks again.

Debbie



Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About