On Tue, Feb 01, 2000 at 01:31:59AM -0500, Ronald J Kimball wrote: > On Mon, Jan 31, 2000 at 11:40:11PM -0500, Andrew Pimlott wrote: > > On Mon, Jan 31, 2000 at 11:01:16PM -0500, Jeff Pinyan wrote: PS. > > I support delete and exists on arrays ;) By index or by value? Let's see... 'splice' can already be used for a simple delete-by-index and I suppose 'defined' would pass as an exists-by-index. I guess, then, that you want these to operate by value on arrays, which wouldn't really be very consistent with their behaviour on hashes, where they use the index. > P.S. I support file test operators on regular expressions. At first glance I thought you were kidding about file test operators on regular expressions until I realized these would be useful: 'Total size of *.html' => -s /\.html$/ 'Hidden subdirectories' => [-d /^\..*/] So '-d /^\..*/' would be interpreted as: opendir _FOO, '.'; grep {/^\..*/ and -d $_} (readdir _FOO); closedir FOO; Of course having it handle multiple directories (as in m#/.*/.*\.html#) would be necessary - perhaps the ** globber from the Perl shell could be used here. That reminds me, it should work with globs too while we're at it: 'Total size of *.html' => -s <*.html> Is there actually serious discussion about doing things this way? Yours in FWP, Tom P.S. Today's excellent generated band names: Bulky Cheerlessness and the Compute Daughterly and the Biopsy Strawberry Inert Clinches and the Informer The Quizzed Vials of Transistorizing The Tapers Contrasted -- -- Tom Rathborne tomr@aceldama.com -- http://www.aceldama.com/~tomr/ -- "I seem to be having tremendous difficulty with my life-style." ==== Want to unsubscribe from Fun With Perl? Well, if you insist... ==== Send email to <fwp-request@technofile.org> with message _body_ ==== unsubscribe