Those don't necessarily do the same thing, do they?:
> print "-" x 80;
Prints 80 dashes.
> > while($m < 80){
> > print "-";
> > $m++
> > }
Prints some number of dashes, 80 or less, depending on the initial value of
$m. This could be used in check printing software, etc.
(Not that I'm offering a solution, just pointing out these may not be the
same).
-Mark
-----Original Message-----
From: Glenn Meyer [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 09, 2002 9:26 PM
To: Beginners" <[EMAIL PROTECTED]>"@glennmeyer.com
Subject: Re: shrinking code
Please, tell me what your are doing here. I have seen similar short code
before but have no idea how to read it or why it works. Can you point me to
docs or a boox the would help? Thanks!
On Tuesday 09 April 2002 10:14 pm, Tanton Gibbs wrote:
> print "-" x 80;
> ----- Original Message -----
> From: "Michael Gargiullo" <[EMAIL PROTECTED]>
> To: "Beginners" <[EMAIL PROTECTED]>
> Sent: Tuesday, April 09, 2002 11:13 PM
> Subject: shrinking code
>
> > How can I write this smaller?
> >
> > while($m < 80){
> > print "-";
> > $m++
> > }
> >
> > --
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]