B
bluez34me
I've looked over the Perl FAQs, this list, and done a good bit of
googling, but haven't found an answer to this...
I have some commands that I issue via the command line that I want to
convert to scripts, but as a complete Perl newb, I haven't a clue how
to go about it. I was hoping that there was some simple way, like
saving the text as a .pl and then calling perl <script>.pl, but
obviously it doesn't work quite that way.
Here's an example of a script that I'm running to clean up html pages
that I'm generating automatically:
perl -pi -e 's/..\index/index/g' *.html
Is there some "standard" and simple way to get this into script form,
or do I need to write a complete script that handles looping through
the files, does the regex handling and all that?
Any help greatly appreciated.
googling, but haven't found an answer to this...
I have some commands that I issue via the command line that I want to
convert to scripts, but as a complete Perl newb, I haven't a clue how
to go about it. I was hoping that there was some simple way, like
saving the text as a .pl and then calling perl <script>.pl, but
obviously it doesn't work quite that way.
Here's an example of a script that I'm running to clean up html pages
that I'm generating automatically:
perl -pi -e 's/..\index/index/g' *.html
Is there some "standard" and simple way to get this into script form,
or do I need to write a complete script that handles looping through
the files, does the regex handling and all that?
Any help greatly appreciated.