in reply to How can I check from wich OS the script is running?

You could check the $^0 variable or Config to check out what OS compiled it
use Config; print @Config{qw/osname osvers/}; __output__ linux2.4.2-2

HTH

_________
broquaint