Strange warning-message

I wonder why ruby throws two warning messages when the follwing script

is executed:
[snip]

Seems to work on on WinXP.