Linking code HTML in Perl

Posted on 2009-05-15
Last Modified: 2012-05-07
I'm trying to generate links in a webpage where you'd click the word and it will send you to a different site.

I'm doing this writing in Perl,  i've tried: <a href="url">Link text</a>

in the script below... but whenever i add it into the body, i receive the Server Error message.

Is there something i'm doing wrong?

<form id='form1' name='form1' method='post' action=''>



  <label>Please enter a Fasta formatted DNA Sequence:<br>

    <textarea name='dna-textbox' id='dna-textbox' 'DNA sequence here:' cols='45' rows='5'></textarea><form id='form1' name='form1' method='post'


 <p>Or upload a DNA Fasta sequence file: <input type='file' name='fileupload'/></p> </label>

  <p>Please select an enzyme to digest sequence:</p>



      <input type='radio' name='enzyme' value='TRYPSIN' id='TRYPSIN'



    <br />


      <input type='radio' name='enzyme' value='ENDOPROTL' id='ENDOPROTL' />

      Endoproteinase Lys-C</label>

    <br />


      <input type='radio' name='enzyme' value='ENDOPROTA' id='ENDOPROTA' />

      Endoproteinase Arg-C</label>

    <br />


      <input type='radio' name='enzyme' value='V8PROT' id='V8PROT' />

      V8 proteinase (Glu-C)</label><br>



    <input type='submit' name='button' id='button' value='Submit' />

     <input type='reset' name='Reset' id='Reset' value='Reset' />

       <input type='button' name='Help' id='Help' value='Help' />

       <input type='button' name='Upload' id='Upload' value='Upload' />

    <br />






Open in new window

Question by:StephenMcGowan
LVL 39

Accepted Solution

Adam314 earned 250 total points
ID: 24398372
The problem is you are using the " character to indicate the start/end of your string.  You either need to escape the " you want to appear, or use another character.
##### Example with escaping

print "<html>

more stuff here

<a href=\"\">link to some site</a>


##### Example using another character

print qq{<html>

more stuff here

<a href="">link to some site</a>


Open in new window


Author Comment

ID: 24398427
Thanks Adam

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article discusses four methods for overlaying images in a container on a web page
Find out what you should include to make the best professional email signature for your organization.
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now