in reply to split file and put contents in variables?
open my $test, '<', 'test.txt' or die "Can't open file: $!"; while (my $line = <$test>) { # chomp not needed with split on ' '. my ($pattern, $cyclo, $group) = split ' ', $line, 4; print $line if 'FOLDING' eq $pattern && 'SHAPE' eq $cyclo && 'OXYGEN' eq $group; } }
($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,
|
|---|