trapd...@trapd00r.se wrote: > On 10/03/10 13:07 -0800, Nik J wrote: >> I'm searching for a Perl module that will make it easy determine the >> following: >> >> OS Type: >> windows >> *unix >> > print $^0; >
That would be $^O (dollar, control-capital-O) or: perl -E 'use English q(-no_match_vars); say $OSNAME;' See `perldoc perlvar` and search for /\$\^O/ -- Just my 0.00000002 million dollars worth, Shawn Programming is as much about organization and communication as it is about coding. I like Perl; it's the only language where you can bless your thingy. Eliminate software piracy: use only FLOSS. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/