in reply to Does anyone use underscore pseudo-filehandle?

Well, besides the _ construct you might want to have a look at the File::stat module. I prefer it for situations like you describe. If only because if a non perl guru needs to maintain the code it'll be a lot easier to track down the appropriate documentation.

Other tricks? Hmm, well getting the hang of $" $, $\ $/ $; is worth your time, as well as learning the use and flexibility of perls command line options is also cool, I recommend having a look -l and -i as they are pretty useful for small scripts (thanks to various people, merlyn wog for pointing these out). Also for smaller scripts I have developed a fondness for using 1 argumnet opens as I mention here Re: auto-vivifying file handles. While it may not count as tricks, there is lots of stuff to know about perls extended regex syntax, watch for japhy posts as he seems to be an expert.

Anyways, one of the things that I like about perl is that whenever you think that you've learned all the perl tricks there are to learn some guru comes along and shows you five more that you never heard of....

:-)

Yves
--
You are not ready to use symrefs unless you already know why they are bad. -- tadmc (CLPM)

  • Comment on Re: Does anyone use underscore pseudo-filehandle?