in reply to why this code doesnt work?
Apart from formatting the code and then re-pasting it here, you would also need to paste the output that this Perl script produces.
You have used #!/usr/bin/env perl in the shebang line, so you'd also need to ensure that the Perl binary is searcheable in the $PATH environment variable of your UNIX shell for this script to execute.
|
|---|