Loading ...
Sorry, an error occurred while loading the content.

RE: [PBML] Uninitialized value in concatination or string error question

Expand Messages
  • Charles K. Clarkson
    ... At this point $1 and $2 are defined. ... At this point $1 and $2 are undefined. Because of the last match was successful and didn t contain parenthesis.
    Message 1 of 4 , May 1 5:49 PM
    • 0 Attachment
      Electron One <electron1@...> wrote:
      : while(<FUT>){
      : chomp;
      : if(/^\s*$/){
      : next;
      : }
      : if($Value=~ /[LH]/){
      : if(/(\S+)\s+PIN\?\s(L|H)/){

      At this point $1 and $2 are defined.

      : if($Value =~ /$2/){
      : print "\nOh yeah $1 matched";

      At this point $1 and $2 are undefined. Because
      of the last match was successful and didn't contain
      parenthesis.

      : }else{
      : print "\nError $1 does NOT match in file $File!";

      At this point $1 and $2 are defined. Because of
      the last match was unsuccessful.

      : }
      : } else {


      HTH,

      Charles K. Clarkson
      --
      Head Bottle Washer,
      Clarkson Energy Homes, Inc.
      Mobile Home Specialists
      254 968-8328
    Your message has been successfully submitted and would be delivered to recipients shortly.