I'm new to perl but i'm learning.
I want to create a perl that reads a file, gets the last word from each line and executes a command like so:
File being read
-rw-r--r-- 1 134529024 Jul 12 15:51 My_file1.TMP
-rw-r--r-- 1 1036349440 Jul 13 11:03 myfile2.TXT
and so on
where Myperl_2.pl is another perl routine (that i didn't write) that i am running
I know this can be done with regex but i can't yet get my head around it
Can you help with the syntax - would greatly apreciate it.