I am creating a system which, as a part of it's process, should copy many files. I want that if a copy fails, the system will print an error and move to the next iteration (using the Perl next statement).
How can I create a one-liner, it if at all?
Currently I have:
copy($source,$dest) or print "-E- Copy failed: $partition fusion SDC wasn't found\n ";
I want to add next besides the print.