"be consistent" | |
PerlMonks |
Re: Re (3): opening new file in different directoryby George_Sherston (Vicar) |
on Oct 23, 2001 at 19:37 UTC ( [id://120817]=note: print w/replies, xml ) | Need Help?? |
So wd you recommend, say, having a function that "sandwiches" each file operation between a pair of chdirs? I do quite a lot of reading and writing, but I also pick up a lot of files (templates and so on). At the moment I keep all the auxiliary files in the same dir as the script and refer to them by name only, no explicit path. /me scratches head and wonders whether I shd use explicit file paths for *everything* I refer to from my script. Wd that be considered good practice? § George Sherston
In Section
Seekers of Perl Wisdom
|
|