About RIPE | Contact  | Search | Sitemap    
Homepage RIPE  
RIPE Community Mail Archives
search  
     
RIPE Navigation Ends
About RIPE Maillists
Maillists Archive
Global Lists
Non Active Lists
RIPE NCC Navigation Ends
Next Section
<<< Chronological >>> Author Index    Subject Index <<< Threads >>>

some problem in syntax.pl

  • From: Hwang Hyojung < >
  • Date: Sat, 18 Oct 1997 16:55:22 +0900 (KST)

Hi, I am Hyojung Hwang and working for Korea Telecom. 
I am using ripe dbase software. 
I found some problem or starnge things in this code. 
In syntax.pl, checking 'auth' attribute, 
---
        elsif ($authstr[0] eq "MAIL-FROM") {
            local($regex) = $value;
            $regex =~ s/^\s*MAIL\-FROM\s*//;
            eval "/$regex/;";
            if ($@) {
                return $O_ERROR, "\"$regex\" is not a legal regular expression";
            }
            else {
                return $O_OK;
            }
        }
--- 

  why do you eval check ? 
  Isn't this necessary ? 
  Rather, I think, $regex is checked if it is valid email address.
  How do you think about it ? 
  If it is necessary, please explain why this is needed . 
  Thanks in advance !!

-- 
    *    _  _	  ==GD@: 56@localhost Hq8A@: 1$1b@localhost.
    ||_|| ||_| 	  Hwang, Hyojung / jung@localhost / 82-2-526-5235
  |_|       _|_	  Internet Team  / Multimedia Laboratory / KT R&D Group
           |_|	  137-792, 17 Umyun-Dong, Seocho-Gu, Seoul, Korea




  • Post To The List:
<<< Chronological >>> Author    Subject <<< Threads >>>
 

Next Section
     About RIPE | Site Map | LIR Portal | About the RIPE NCC | Contact | © RIPE Community. All rights reserved.
RIPE.NET Homepage LIR Portal RIPE Community