--As of Thursday, February 19, 2004 2:22 PM -0500, Joel is alleged to have said:

Yes, BASIC is the only programming I have ever done. All I can really
remember was PRINT, GOTO, and a variety of line numbers. I'm trying to
write a text adventure (Don't look at me like that, Perl is a general
purpose language!).

I actually think Perl is perfect for this...


I'm getting tired of writing large chunks of code that I reuse the basic
structure of and wouldn't mind an easier solution. I'll go look up
subroutines, allthough GOTO does just fine for me.

Subroutines will make your life *much* easier, once you understand them. They make the control flow obvious (go to the subroutine, come back when done), and allow you to do things like return values.


Not to mention that they are shorter to type...

Daniel T. Staal

---------------------------------------------------------------
This email copyright the author.  Unless otherwise noted, you
are expressly allowed to retransmit, quote, or otherwise use
the contents for non-commercial purposes.  This copyright will
expire 5 years after the author's death, or in 30 years,
whichever is longer, unless such a period is in excess of
local copyright law.
---------------------------------------------------------------

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to