in reply to Re^4: Splice an array into another array
in thread Splice an array into another array

@DNA3 = <DNA3handle>; # read all LINES of file into array chomp @DNA3; # remove any and all newlines @DNA3=split('',join('',@DNA3)); # join('',@DNA3) join all LINES into + one long line # split('', ...) split long line int +o list # of individual chara +cters # @DNA3= ... assign list of indi +vidual # characters to an ar +ray
@DNA3 will end up looking something like  ('A', 'T', 'C', 'G', ...) See chomp, join, split.

Update: Fixed up formatting of long comment lines for last statement.


Give a man a fish:  <%-{-{-{-<

Replies are listed 'Best First'.
Re^6: Splice an array into another array
by Smeb (Novice) on Jun 24, 2017 at 03:46 UTC
    thank you :)