Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: RFC: Perl Second-Best Practices

by radiantmatrix (Parson)
on Dec 19, 2005 at 15:31 UTC ( [id://517757]=note: print w/replies, xml ) Need Help??


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?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://517757]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (1)
As of 2024-04-25 00:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found