Another fun way is to use `reverse' and `numeric/string conversion' as
below.

perl -le 'print 0+reverse int 0+reverse "1.2.3.45"'
45

Best regards,
Todd


-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/


Reply via email to