On Sat, Feb 07, 2004 at 04:50:21AM +0900, Bermejo, Rodrigo wrote:
> Dear Ruby List:
> 
> I'm trying to add one hr, to some time strings:
> 
> "1:12:00" --> "2:12:00"  (i don't need to worry about 24)
> 
> Mi first try was ...
> 
> "1:12:00".gsub(/(^\d?\w)/,$1.to_i.succ.to_s)

"1:12:00".gsub(/(^\d?\w)/) { $1.to_i.succ.to_s }


-- 
 _           _                             
| |__   __ _| |_ ___ _ __ ___   __ _ _ __  
| '_ \ / _` | __/ __| '_ ` _ \ / _` | '_ \ 
| |_) | (_| | |_\__ \ | | | | | (_| | | | |
|_.__/ \__,_|\__|___/_| |_| |_|\__,_|_| |_|
	Running Debian GNU/Linux Sid (unstable)
batsman dot geo at yahoo dot com

'Ooohh.. "FreeBSD is faster over loopback, when compared to Linux
over the wire". Film at 11.'
	-- Linus Torvalds