Help for this page

Select Code to Download


  1. or download this
    my $line;
    while ( <DATA> ) {
    ...
       $line = $1;
       print "$line\n";
    }
    
  2. or download this
    while ( <DATA> ) {
       chomp;
       my $line = $_;
       # ...
    
  3. or download this
    while ( <DATA> ) {
       chomp;
       /\s+<\w+\/?>(.*)<\/\w+>/ or next;
       print $1, "\n";
    }
    
  4. or download this
    while ( my $line=<DATA> ) {
       chomp $line;
       $line =~ /\s+<\w+\/?>(.*)<\/\w+>/ or next;
       print $1, "\n";
    }