Are you reading these in from a file and seeing that their not changed in the file ?
If so, try this recipe for in-place editing
prompt> perl -i -pe 's/"t/"GC_t/' file_to_be_changed.txt
The -i flag tells perl to make changes (like regex substitutions) in the original file, dont make a backup
The -pe is two options joined together - -p is print every line in the supplied file back out to itself (thats what -i and -p together do - print every line back to the same file)
The -e tells perl to apply the regex to every line in the file - and hence the "t lines become "GC_t before being printed back out.
You can find more options like these in "perldoc perlrun", or Perl Command-Line Options.
Cheers
...it is better to be approximately right than precisely wrong. - Warren Buffet
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.