XP is just a number | |
PerlMonks |
Re: foreach loop to untar multiple filesby hippo (Bishop) |
on Nov 13, 2015 at 16:28 UTC ( [id://1147672]=note: print w/replies, xml ) | Need Help?? |
chomp (@array = system "ls $results\/*.tar.gz"); The system function does not return its output - only its exit code. You probably want to use backticks instead. eg:
Update: obviously a slow typing day for me :-) As my learned brethren have pointed out there are much better ways of doing this than shelling out at all.
In Section
Seekers of Perl Wisdom
|
|