Help for this page

Select Code to Download


  1. or download this
    <xml>
    <file>$rec->{filename}</filename>
    <ipv4>$rec->{IPAdress}</filename>
    <something>$foo</something>
    </xml>
    
  2. or download this
    for my $line (@template){
         $line =~ s/(\$\w+->{\w+})/$1/eeg;
         $line =~ s/(\$\w+)/$1/eeg;
         $text .= $line;
    }
    
  3. or download this
            for my $line (@cfile){
                $line =~ s/(\$\w+->{\w+})/$1||''/eeg;
                $line =~ s/(\$\w+)/$1||''/eeg;
                $text .= $line;
             }
    
  4. or download this
            for my $line (@cfile){
                $line =~ s/(\$\w+->{\w+})/defined $1 ? $1 : ''/eeg;
                $line =~ s/(\$\w+)/defined $1 ? $1 : ''/eeg;
                $text .= $line;
             }