Mr. Shawn H. Corey wrote:
> Rob Dixon wrote:
>> Mr. Shawn H. Corey wrote:
>>>
>>> print '', (split( /\./, $ipAddress ))[-1];
>>
>> Ugly, ugly, ugly.
>
> OK, try:
> 
> print substr($ipAddress,rindex($ipAddress,'.')+1);

Are you really saying that you could make it even worse if you wanted to?

Rob

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


Reply via email to