Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^3: Remove hyperlinks from the lines which have special character?

by huck (Prior)
on Mar 13, 2017 at 09:46 UTC ( [id://1184379]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Remove hyperlinks from the lines which have special character?
in thread Remove hyperlinks from the lines which have special character?

my $dolink=$data[0] !~ m/[\=\%]/; for my $word(@data){ $check++; print $fh_out '<td>'; if($check==1 && $dolink ) { print $fh_out '<a href="'.$href.'" >'.$word.'</a>'; } else { print $fh_out $word;} print $fh_out '</td>'; }
That isnt what you showed as your sample output tho, whole lines were missing ya know. cleaned it up a little too. you dont really want the training TRAILING space in the href= either.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1184379]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (5)
As of 2024-03-29 11:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found