From: "Jeremy Gregorio" <gunvalk / cox.net>


> Does ruby have a global variable for the file separator? This is really 
> useful for cross platform programming ( / for unix \ for windows) but I 
> couldn't find one in the lists of Ruby's globals I could dig up. Thanks 
> again :).
> 
> Jeremy Gregorio

It's not global, but it's recorded in the File class.

Mostly you shouldn't have to worry about it.  See File.join.

Gavin