I hope my question is a simple one for you, for me it has been not. if you have the time the % in perl what is it doing insomething like this $number %2 == 1
i used it in the following but want to understand what it is actually doingas I have read theres no s for string no g for floating point no d for decimal so by itself what is it doing and how is it making this work .. no where have i found info on % by itself with a number .#!/usr/bin/perl print "\tPick a number\n"; $number = <>; if($number %2 == 1){ print "That was a odd number\n"} else { print "That was a even number\n"} exit
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |