Hello monks!
I wanted to double-check something that I have noticed with you (maybe I am wrong, please bear with me). If I have a hash with keys that have special characters like $ or | or ., is this a problem? I am working with protein sequence data, that have IDs like the following:
>tr|Q8PV56|Q8PV56_METMA PEP-CTERM sorting domain-containing protein OS
+=Methanosarcina mazei (strain ATCC BAA-159 / DSM 3647 / Goe1 / Go1 /
+JCM 11833 / OCM 88) OX=192952 GN=MM_2118 PE=4 SV=1
Can all the above be stored as a hash key (length-wise I mean). Will there be any issue if e.g. I try to execute a command like if exists($hash{$key})
Thank you for your guidance!
-
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.
|