[tpm] Glob problem
Liam R E Quin
liam at holoweb.net
Tue Oct 27 11:20:04 PDT 2009
On Tue, 2009-10-27 at 13:48 -0400, Uri Guttman wrote:
>
> my ($file_name) = read_dir_prefix qr/${job_no}XX-.*\.txt/, $from_dir ;
Maybe this should be called,
pathnames_from_dir_matching $dir, $pattern
since the "prefix" is really the path (relative or full),
and then people could understand the code without having
to read the documentation (something I consider an
important principle but that's not universally
agreed upon, a sort of locality principle)
Best,
Liam
--
Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/
Pictures from old books: http://fromoldbooks.org/
Ankh: irc.sorcery.net irc.gnome.org www.advogato.org
More information about the toronto-pm
mailing list