Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: reading files in @ARGV doesn't return expected outputby zentara (Archbishop) |
on Jun 27, 2017 at 13:06 UTC ( [id://1193687]=note: print w/replies, xml ) | Need Help?? |
print "$list$a$b "; prints only first file and nothing else I don't know if you are aware of it, but one obscure rule in Perl is do not use $a and $b as variables, because they interfere with Perl's sort function. I don't think it's a problem here, but it could be that sort is invoked internally, and your $a and $b are getting messed up. Try changing those variable names. I'm not really a human, but I play one on earth. ..... an animated JAPH
In Section
Seekers of Perl Wisdom
|
|