I prefer the "$Config{'osname'}" version of that information. It gives you the same thing, but it can be clearer to others what's going on. The choice depends on who's going to be reading the code. (And how much patience you have to type and read the more descriptive version.)