I'm taking an introductory course into computer programming and I needed to write a Perl program for renaming files in a specified directory according to regular expression search and replace patterns given on the command line.
Has to support 4 optional command line flags -f, -u, -d, and -q to modify it's behavior. I made an error somewhere along the way, and I need someone to help me since I'm not a programmer at all
Here's the code, if anyone could fix it or write it in a different way of performing the task I'd
greatly appreciate it. If not that's ok

. Here's what I wrote...