Re: Could I put commands in a variable

From: James Edward Gray II (james_at_grayproductions.net)
Date: 02/19/04


Date: Thu, 19 Feb 2004 13:40:13 -0600
To: "Joel" <Trag16@hotmail.com>

On Feb 19, 2004, at 1:22 PM, Joel wrote:

> Yes, BASIC is the only programming I have ever done. All I can really
> remember was PRINT, GOTO, and a variety of line numbers.

Most of us were there at some point. We just don't talk about it much.
  :D

> I'm trying to write a text adventure (Don't look at me like that, Perl
> is a general purpose
> language!).

I have a semi-functional MUD I wrote in Perl sitting in my To Finish
Someday pile. You'll get no funny looks from me.

> I'm getting tired of writing large chunks of code that I reuse
> the basic structure of and wouldn't mind an easier solution.

That's why we have loops, conditionals, subroutines, modules....

> I'll go look up subroutines, allthough GOTO does just fine for me.

No it doesn't. Reread your previous sentence. ;)

I bet we can open your eyes to a whole new world, if we see some of
that code. If it's especially large, perhaps you could post it online
somewhere and just give us a link. I know I would be happy to go take
a look at it and provide suggestions.

James



Relevant Pages

  • RE: Could I put commands in a variable
    ... Joel wrote: ... BASIC is the only programming I have ever done. ... > remember was PRINT, GOTO, and a variety of line numbers. ...
    (perl.beginners)
  • Selecting cell value for a sum, based on a condition
    ... goto Data--Filter--Autofilter and click on ... the 'each' variety, one value ... >will be used in the sum. ... the "square foot" variety, ...
    (microsoft.public.excel.misc)
  • Re: Could I put commands in a variable
    ... then just use the variable when I needed the commands instead of ... > goto SECONDARY; ... Hi Joel. ... In its earlier versions BASIC control flow ...
    (perl.beginners)
  • RE: Test for Empty, Null, "", 0
    ... GoTo a: ... "Joel" wrote: ... Dim objFolder As Object ... Both of the results you reported are consistent with an empty cell. ...
    (microsoft.public.excel.programming)
  • Re: Could I put commands in a variable
    ... On 02/19/04 14:22, Joel wrote: ... BASIC is the only programming I have ever done. ... > remember was PRINT, GOTO, and a variety of line numbers. ... Regards, ...
    (perl.beginners)