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
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: How to replace spaces with different chars?
by LanX (Saint) on Jul 07, 2022 at 14:15 UTC | |
by kcott (Archbishop) on Jul 07, 2022 at 14:46 UTC | |
by LanX (Saint) on Jul 07, 2022 at 16:49 UTC | |
by kcott (Archbishop) on Jul 08, 2022 at 17:42 UTC | |
by LanX (Saint) on Jul 10, 2022 at 17:43 UTC |
In Section
Seekers of Perl Wisdom