I’d like to have a perl program that I can call with something like:
perl myProgram --input="This is a sentence"
And then have perl print the output to terminal, in this format
word1 = This
word2 = is
word3 = a
word4 = sentence
I’m usually a c/c++/java programmer, but I’ve been looking at perl recently, and I just can’t fathom it.
Use Getopt::Long and split.