my $EXON_IN; for my $i (0..4){ # Cycle through all of them (including the undef) while (<$i/*test.txt>) { $EXON_IN = <$i/*test.txt>; } #OR put in list context ($EXON_IN) = <$i/*test.txt>; print "$i, -$EXON_IN-\n"; }
In reply to Re: More Fileglob in scalar context question
by runrig
in thread More Fileglob in scalar context question
by scain
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |