Help for this page

Select Code to Download


  1. or download this
    my @words   = qw( foo bar );
    while (my $line = <DATA>) {
        chomp $line;
    ...
    foo
    bar
    foo bar
    
  2. or download this
    use List::Util qw( first );
    my @words   = qw( foo bar );
    while (my $line = <DATA>) {
    ...
    foo
    bar
    foo bar