SPUG: number inside of a number

jerry gay jerry.gay at gmail.com
Tue Sep 19 21:36:59 PDT 2006


On 9/19/06, luis medrano <lmzaldivar at gmail.com> wrote:
> List,
>
> I have a question, I need a variable where is holding a value (number) but I
> need to check and verify the last digit. For example :
> My $number=98765;
>
> if ($number  last digit is 5)
>
> I really appreciate you help.
>
if( '5' eq chop $number ) { ... }


More information about the spug-list mailing list