http://qs321.pair.com?node_id=11145331


in reply to How to replace spaces with different chars?

In my initial response I answered your question about using system; however, it occurs to me that you probably want to capture that output and do something with it. So, if you replace

system("ls -1 $datum");

with

my @matches = `ls -1 $datum`;

you'll now have an array of matches that you can process further. If that processing was

print for @matches;

you'll get identical output to what I originally posted.

— Ken