in reply to How can I define the subroutine to get the result of the appended string i.e. ATGCTTTT?

One way to do it is to call your function using the package name as a prefix DNAappend::DNAappend:
use warnings; use strict; use DNAappend; my $a='ATGC'; my $b='TTTT'; print"\n\n"; print DNAappend::DNAappend($a,$b); print"\n\n"; exit;

See also:

  • Comment on Re: How can I define the subroutine to get the result of the appended string i.e. ATGCTTTT?
  • Select or Download Code

Replies are listed 'Best First'.
Re^2: How can I define the subroutine to get the result of the appended string i.e. ATGCTTTT?
by supriyoch_2008 (Monk) on Sep 25, 2012 at 18:24 UTC

    Hi toolic,

    Thanks for your suggestions. I shall try it.

    With regards,