finddata has asked for the wisdom of the Perl Monks concerning the following question:
I like to remove hyperlinks from the lines(whereever special character is present (i.e =,%).SL.NO CHECKLIST ITEM VALUE COMMENTS CONFIRMATION Revision1 0.00% 0.00% Revision2 0.88% 0.88% OVERALLSTATUS=0.88% PARTIALSTATUS=0.88%
my $href="https://nce.log.com/diay/DB/$root"; my $check=0; for my $word(@data){ $check++; print $fh_out '<td>'; if($check==1) { # print $fh_out '<a href="' .$href_to_what{$word}.'">'; print $fh_out '<a href="'.$href.' " >'; } print $fh_out $word; if($check==1) { print $fh_out '</a>'; } print $fh_out '</td>'; } print $fh_out "</tr>\n"; }
Expected output wiht hyperlinks: SL.NO CHECKLIST ITEM VALUE COMMENTS CONFIRMATION Revision1 0.00% 0.00% Revision2 0.88% 0.88%
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Remove hyperlinks from the lines which have special character?
by Corion (Patriarch) on Mar 13, 2017 at 08:56 UTC | |
by finddata (Sexton) on Mar 13, 2017 at 09:05 UTC | |
by Corion (Patriarch) on Mar 13, 2017 at 09:16 UTC | |
|
Re: Remove hyperlinks from the lines which have special character?
by huck (Prior) on Mar 13, 2017 at 09:14 UTC | |
by finddata (Sexton) on Mar 13, 2017 at 09:34 UTC | |
by huck (Prior) on Mar 13, 2017 at 09:46 UTC |