EDIT: (More of a complete 180, really): I somehow completely missed the fact you already asked the exact same question in Re^2: Reverse Complement and had a lengthy exchange with AnomylousMonk, who was very helpful.
I actually used the exact same structure (and even used the exact same error messages!) that you provided in the original post. Did you write that code yourself? Anyway, I also gave a direct example of how to run the script. Assuming you saved the script as 1041523.pl (an odd name, to be sure—feel free to choose a better one), type the following:
perl 1041523.pl GGGGaaaaaaaatttatatat atatataaattttttttcccc
Of course, substitute any two sequences for the two shown here.
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|