Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: add letters to the begin of the sentence

by kcott (Abbot)
on Sep 12, 2013 at 21:46 UTC ( #1053800=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $ perl -Mstrict -Mwarnings -e '
        my @fasta = (">dddd\n", "abcdef\n", ">eeee\n", "bcdef\n");
    ...
    aaaaabcdef
    >eeee
    aaaabcdef
    
  2. or download this
    while (<$input_fh>) {
        print $output_fh 'aaaa' unless /^>/;
        print $output_fh $_;
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (11)
As of 2014-08-20 22:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (124 votes), past polls