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

RE: [PBML] Can't extract a range when using variables

Expand Messages
  • Charles K. Clarkson
    ... Try using: if ($. == $FROMVAR .. $. == $TOVAR) { HTH, Charles K. Clarkson -- Head Bottle Washer, Clarkson Energy Homes, Inc. Mobile Home Specialists 254
    Message 1 of 3 , Jan 29, 2003
    • 0 Attachment
      : skrampach <skrampach@...>
      :
      : $FROMVAR=42;
      : $TOVAR=60;
      :
      : open(FILE, "< /tmp/TEST") or die "Can't Open /tmp/TEST : $!\n";
      : while (<FILE>) {
      : if ($FROMVAR .. $TOVAR) { # This won't work using variables

      Try using:
      if ($. == $FROMVAR .. $. == $TOVAR) {


      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.