Help for this page

Select Code to Download


  1. or download this
      if (/^\s*(\w+)\s*=\s*(?:"([^"]*)"|(.*))/) {
        my ($name, $val) = ($1, $+);
        $vars{$name} = $val;
        $depend{$name} = [ $vars{$name} =~ /\$(\w+)/g ]; # <---
      }
    
  2. or download this
      while($ebuildcontents =~ /\b([-A-Z0-9_]+)\s*=\s*\"(.*?)\"/sgc) {
        my ($var, $value) = ($1, $2);
        $ebuildvars{$var} = $value;
        $vardepend{$var} = [ $value =~ /\$\{?(\w+)\}?/g ];
      }