Help for this page

Select Code to Download


  1. or download this
    s/(?:$search>){3}()\w+\s+/Notes:/;
    s/(?:$search>){5}()\w+\s+/Director:/;
    s/(?:$search>){7}()\w+\s+/Actors:/;
    
  2. or download this
    my $data = do {local $/;<OLD>}; # slurp the whole file  into $data 
    my @replace_list = ('','Notes:','Director:','Actors:'); 
    while ($data =~ s/(?<=$search)/shift @replace_list/egs) {};
    
  3. or download this
    
    #!/usr/bin/perl -w
    ...
        exit(1);
    }