You can also use special operators like ++, --, +=, -=, /= and *=. These manipulate a scalar's value without needing two elements in an equation. Some people like them, some don't. I like the fact that they can make code clearer.
$a = 5;
$a++; # $a is now 6; we added 1 to it.
$a += 10; # Now it's 16; we added 10.
$a /= 2; # And divided it by 2, so it's 8.
Originally posted by AbecX You can use a++ or variable++ in a loop such as one that pulls data from a sql table, if a = 10 then you can add an addtional field for a check box, for instance, on http://www.dfwls1.com/fastest/
I think that went a little too far over my head... Im still on hello world stuff, just trying to get a grasp on some diffren't varibles right now
I think the way 01 described explained what i needed, but does the following work:
Originally posted by Sami Does it have to be perl? I would recommend C++ as the language to learn first. It's easy to move to other languages from there. Java is ok but not as versatile you would want it to be.
Doesnt matter, can you recommend a good c++ book?? I want to be able to work from linux... so as long as the book doesnt refer to MS C++ i dont mind. what it is