in reply to What's your programming style?

The book 'Perl Best Practices' (ISBN 0596001738) suggests still another style for choosing a single value:
use strict; use warnings; use English; sub GetPathnameSeparator { $_ = $OSNAME; my $seperator = # OS # Seperator /MACOS/i ? ':' : /WIN/i ? '\\' : '/' ; return $seperator; }
Bill