in reply to Re^3: remove files
in thread remove files

Your code still has the "split, <STDIN>", so it doesn't really address the problem the OP is having. Advice on playing it safe is certainly not bad, but this thread is in the context of a Learning Perl exercise, taint mode is probably a later chapter...

Replies are listed 'Best First'.
Re^5: remove files
by Don Coyote (Hermit) on Nov 25, 2019 at 22:22 UTC

    Yes, I see your point. I have probably supplied more info than I needed to in my first response.

    removed split, from line