Help for this page

Select Code to Download


  1. or download this
    sub TIEHANDLE($;$) 
    {
    ...
        my $ref = shift;
        return @{$ref} > 1 ? ">Seq" . ++$ref->[-1] . "\n" . shift (@{$ref}
    +) . "\n" : undef;
    }
    
  2. or download this
    use Tie::Handle::FromArray;
    
    my $fh = new Tie::Handle::FromArray ( ["AAAAAAAAAAAAAAA", "AAAAAAAGGAA
    +ACCA"] );
    while (<$fh>) { print; }
    
  3. or download this
    >Seq1
    AAAAAAAAAAAAAAA
    >Seq2
    AAAAAAAGGAAACCA