[boulder.pm] RegExpn Matching, not

Robert L. Harris Robert.L.Harris at rnd-consulting.com
Wed Feb 9 16:27:15 CST 2000



Ok,
  I'm screwing around with my own Web Page generator for some comics I 
like.  Really an excuse to mess with LWP and some RegExpressions.  I have

The following lines:


Defined when reading a config file:
$ComicsMatch{userfriendly}= cartoons\/archives\/\w*\/\w*.gif;


In the Main script:

  This Works perfectly
    $content =~ /(cartoons\/archives\/\w*\/\w*.gif)/;

  Does Not Work:
    $content =~ /($ComicsMatch{$key})/;

  Does Not Work:
    $TmpMUrl=$ComicsMatch{$key};
    $content =~ /($TmpMUrl)/;


I really need to user iteration #2, or #3 so I can keep a config file
instead of hardwiring  into the script itself.


Robert

:wq!
---------------------------------------------------------------------------
Robert L. Harris                |  Low quality in a product happens.
Senior System Engineer          |    That doesn't mean it's right and
  at RnD Consulting.		|      definitely doesn't mean it should
                                \_       be accepted.  Require quality.

http://www.rnd-consulting.com/~nomad

DISCLAIMER:
      These are MY OPINIONS ALONE.  I speak for no-one else.

FYI:
 perl -e 'print $i=pack(c5,(41*2),sqrt(7056),(unpack(c,H)-2),oct(115),10);'




More information about the Boulder-pm mailing list