SPUG: number inside of a number

luis medrano lmzaldivar at gmail.com
Tue Sep 19 17:08:16 PDT 2006


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.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.pm.org/pipermail/spug-list/attachments/20060919/35492ec7/attachment.html 

More information about the spug-list mailing list