in reply to RFC: Perl Second-Best Practices

The "second-best" thing I do regularly is to use path strings instead of building them with the File::Spec functions. It's all ActiveState's fault: their version of Perl for Win32 lets me get away with using open my $FH, '<', './data/source.txt' or die($!), where as other Win32 versions of Perl will not DWIM on the forward slashes.

This has bitten me more than once when one of the scripts I write for work gets run on a box using PXPerl...

<-radiant.matrix->
A collection of thoughts and links from the minds of geeks
The Code that can be seen is not the true Code
"In any sufficiently large group of people, most are idiots" - Kaa's Law

Replies are listed 'Best First'.
Re^2: RFC: Perl Second-Best Practices
by venk (Acolyte) on Dec 19, 2005 at 20:02 UTC
    Maybe you shouldn't use either one, since we have Path::Class?