Good question! Use curly braces: my $pattern = "CAC1Bvariant${variable}_fasta.txt";.
Improve your skills with Modern Perl: the free book.
In reply to Re: Variable in a string
by chromatic
in thread Variable in a string
by Uberfinch
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |