in reply to Re: Regular Expression gotchas ?
in thread Regular Expression gotchas ?

I think that I have a pretty good understanding of basic perl and programming theories. What I don't understand is why what appears to be identical calls with identical data is resulting in two different outcomes.

What more do you want of the code? It will be hard for me to post the entire code since it is company material, but if you have a thought process about something going onn, I will surely put up pertinent pieces. In all there is at most 100 lines that are executed.

the_Don
...making offers others can't rufuse.

Replies are listed 'Best First'.
Re: Re: Re: Regular Expression gotchas ?
by jdporter (Paladin) on Feb 14, 2003 at 22:28 UTC
    I think that I have a pretty good understanding of basic perl and programming theories.
    If you think 'FILE.gpg' and 'FILE.pgp' are "identical data", then I would have to dispute your claim.

    Furthermore, do you realize that m/\Q\E/ matches everything, and thus that
    $expected_sender = ''; if ( $signer =~ /\Q$expected_sender\E/ )
    will always be true?

    It is entirely unclear why/how your section 1 and section 2 could be related. Since you "know" that they are, you have useful information which you're not sharing. Do you want us to help, or not?

    jdporter
    The 6th Rule of Perl Club is -- There is no Rule #6.

      It appears that section 1 and section 2 are indeed related. Please see the replies below for an explanation.

      Many thanks to Hugo.

      the_Don
      ...making offers others can't rufuse.