Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: RE: do while loops

by snafu (Chaplain)
on Jun 15, 2001 at 23:59 UTC ( #88922=note: print w/replies, xml ) Need Help??


in reply to RE: do while loops
in thread do while loops

Couldn't $value = $value - 1; be written like this?:

$value -= 1; # or $value-- ; # since its just -1

----------
- Jim

Replies are listed 'Best First'.
Re: Re: RE: do while loops
by mrbbking (Hermit) on Dec 16, 2001 at 00:55 UTC
    Yeah, they could.
    I think this example is trying to limit itself to the syntax of the do/while loop, though. So it can be fully understood on its own. Using the 'minimalist' decrement operators might distract someone new to the language.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://88922]
help
Chatterbox?
[marto]: Even with shell command recall I find it less time consuming to do such things in a file.
[marto]: I very seldom use one liners for anything which isn't utterly trivial
[Discipulus]: i'm wise enough to never use my oneliners
[Discipulus]: anyway marto, i read th CB logs.. osteopat is what you need

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (7)
As of 2017-09-22 08:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (260 votes). Check out past polls.

    Notices?