Help for this page

Select Code to Download


  1. or download this
      my @story = <FILE>;
    
  2. or download this
      foreach my $line ( @story ) {
          $line =~ s/\[([A-Za-z-]+)\]/Replace($1)/eg;
      }
    
  3. or download this
      print @story;
    
  4. or download this
      sub Replace {
          my $word = shift;
          ...
      }