It looks like you've got the general idea fairly well, but you're right that there are quite a few syntax issues to work out. First, it looks like you've written this in a program like Microsoft Word, resulting in incorrect capitalization, quoting characters, and such. I suggest you work with a plain text editor, or even better, a programmer's editor with syntax highlighting (depending on your preferred OS and windowing system we can make some suggestions).
To learn the syntax, it's probably best to take a step back and first get a very short Perl script working, and then extend it with the features that you need. I recommend you start with perlintro, a short but very good introduction that will show you many of the things that you need for your script.
In reply to Re: unix to perl questions
by Anonymous Monk
in thread unix to perl questions
by deyaneria
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |