PERL based log analyzer
SourceForge.net Logo
Home Home Contact us Contacts
Overview Documentation Downloads Contacts Links
 
News & Updates
 
July 21, 2008
v 1.0 now available
Quick Links
 
Sourceforge project's page
CeCILL license
CEA web site
operators to be used with variables next up previous contents
Next: The internal variables Up: The variable syntax Previous: The variable syntax   Contents

operators to be used with variables

Operators to be used on variable are more or less the less than in PERL, except that the '=' sign is replaced by $'<-'$ . But the following operator will change the value of the variable on which they are used .

Operator PERL equivalent what it does
$<- $ = affectation
$+<- $ += increment
$-<- $ -= decrememt
$*<- $ *= multiplication
$/<- $ /= division
$\&<- $ &= AND operation
$ <-\string~$ regexp operation
$ .<- $ .= strings concatenation

And more generally, every operator in PERL with '=' in it can be use by just replacing the '=' character by $<- $. When operating with variables for anything but affectation, every classical operator can be used ( +, *, - , / , .... ) .



Philippe Deniel 2008-07-22
Designed by CMG Technologies, adapted by Thomas LEIBOVICI
Design downloaded from Free Templates