Write a PERL script that lists the directory contents of a directory specified by the user : I have tried this code but it doesnt work for the user-input directory.
It only lists the PWD.
Help!

[My code screenshot][1]


  [1]: https://i.stack.imgur.com/kirW6.png