in reply to Implementing filters as callbacks / hashrefs / regexes
Your hash of coderefs is generally called a dispatch table in perl. It's an excellent choice, and a popular enough idiom to cause no confusion.
You may want to look into PerlIO::via, which addresses just your problem - preprocessing file I/O. It permits setting the processing scheme within the open mode argument, or with binmode.
After Compline,
Zaxo
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Implementing filters as callbacks / hashrefs / regexes
by clinton (Priest) on Jun 17, 2007 at 11:11 UTC |