Thank you for the help! That has clarified some things for me.
#!/usr/bin/env perl open (my $data, "<", "test.txt") or die "There was a problem opening: +$!"; my @primers = <$data>; close $data; chomp @primers; use strict; use warnings; use Algorithm::Combinatorics qw(combinations); my $strings = \@primers; my $iter = combinations($strings, 2); while (my $c = $iter->next) { print "@$c\n"; }
I'm now running this and it mostly does what I intended it to do. My output ends up putting an unwanted space in-between the 2 words that were combined. Is this because i'm stringifying?
In reply to Re^4: Using imported .txt file with Algorithms::Combinatorics
by TJCooper
in thread Using imported .txt file with Algorithms::Combinatorics
by TJCooper
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |