> Is there a way to "compare" regular expressions? For instance, > q/.*/ is less than q/a.*/ because whatever matches the latter > also matches the former. Is there an easy way to do such a > comparison? That's not true. What the first one matches is just about everything, except a newline; note that you don't need q// - which I believe you've just turned your expression into '.*' - when a simple /.*/ would do. The /a.*/ will only match those things with an a in them followed by whatever... Remember - a dot (.) is any character except a newline... -Sneex- :] ==== Want to unsubscribe from Fun With Perl? Well, if you insist... ==== Send email to <fwp-request@technofile.org> with message _body_ ==== unsubscribe