Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • Needless to say, both -I and -E cannot be included in a single invocation of activitymail.

    I don't see why it is "needless to say". Surely it could be useful to allow multiple -I and -E options in a single invokation to specify subtle patterns of selection. Just process them in order and use the selected result whenever a match is foud, or reverse the final option if its pattern fails to match. So: "-I normal -E no*" would exclude most files beginning with "no", but still include "normal" as well as files that do not begin with "no". (I would be tempted to process them in right-to-left order, the reverse of the order that they were typed, since people normally think of the larger cases and then proceed to the exceptions.)

    • Perhaps a better sentence to use would have been: It is ambiguous at best to specify both -I and -E, thus it is not allowed. Your suggested algorithm is neither the one that I came up with, nor the one that David originally implemented, thus we decided not to allow it to avoid such confusion. Gary Meyer.
    • I kinda like this idea, but I'm not sure how I'd divide it up if either or both -E and -I specified multiple regular expressions. How to decide which go first?

      David